Browse code

- fix: port was not set to default when the hostname was an ip address

Andrei Pelinescu-Onciul authored on 16/10/2006 18:40:55
Showing 1 changed files
... ...
@@ -2212,6 +2212,7 @@ int dns_sip_resolve(struct dns_srv_handle* h,  str* name,
2212 2212
 						}
2213 2213
 #endif
2214 2214
 						*ip=*tmp_ip;
2215
+						*port=h->port;
2215 2216
 						return 0;
2216 2217
 					}
2217 2218