Browse code

core: try all srv protocols when not already set

- patch to commit by Mihály Mészáros

Daniel-Constantin Mierla authored on 26/12/2012 10:20:46
Showing 1 changed files
... ...
@@ -1475,7 +1475,7 @@ struct hostent* no_naptr_srv_sip_resolvehost(str* name, unsigned short* port, ch
1475 1475
 						" (%d), unable to perform SRV lookup\n", name->len);
1476 1476
 	} else {
1477 1477
 		/* if proto available, then add only the forced protocol to the list */
1478
-		if (proto && *proto==0){
1478
+		if (proto && *proto!=PROTO_NONE){
1479 1479
 			srv_proto_list[0].proto=*proto;
1480 1480
 			list_len=1;
1481 1481
 		} else {