[sr-dev] git:master: core: try all srv protocols when not already set

Daniel-Constantin Mierla miconda at gmail.com
Wed Dec 26 12:33:14 CET 2012


Module: sip-router
Branch: master
Commit: 17b3c70ea9cd21b71b44062dfff20cea7e67b349
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=17b3c70ea9cd21b71b44062dfff20cea7e67b349

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Wed Dec 26 11:20:46 2012 +0100

core: try all srv protocols when not already set

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

---

 resolve.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/resolve.c b/resolve.c
index 34d4ff8..2a690a4 100644
--- a/resolve.c
+++ b/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 {




More information about the sr-dev mailing list