Explorar o código

core: try all srv protocols when not already set

- patch to commit by Mihály Mészáros
Daniel-Constantin Mierla %!s(int64=12) %!d(string=hai) anos
pai
achega
17b3c70ea9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 	} else {
 		/* 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;
 			list_len=1;
 		} else {