Browse Source

core: try all srv protocols when not already set

- patch to commit by Mihály Mészáros
Daniel-Constantin Mierla 12 years ago
parent
commit
17b3c70ea9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      resolve.c

+ 1 - 1
resolve.c

@@ -1475,7 +1475,7 @@ struct hostent* no_naptr_srv_sip_resolvehost(str* name, unsigned short* port, ch
 						" (%d), unable to perform SRV lookup\n", name->len);
 						" (%d), unable to perform SRV lookup\n", name->len);
 	} else {
 	} else {
 		/* if proto available, then add only the forced protocol to the list */
 		/* if proto available, then add only the forced protocol to the list */
-		if (proto && *proto==0){
+		if (proto && *proto!=PROTO_NONE){
 			srv_proto_list[0].proto=*proto;
 			srv_proto_list[0].proto=*proto;
 			list_len=1;
 			list_len=1;
 		} else {
 		} else {