[sr-dev] git:3.3: modules_k/xcap_server: Fixed small mistake in last xcap_server fix

Peter Dunkley peter.dunkley at crocodile-rcs.com
Wed Oct 10 11:51:20 CEST 2012


Module: sip-router
Branch: 3.3
Commit: 2f6b9bc710acff53dea899236a81a6f9d33ec4ff
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2f6b9bc710acff53dea899236a81a6f9d33ec4ff

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Wed Oct 10 10:49:16 2012 +0100

modules_k/xcap_server: Fixed small mistake in last xcap_server fix
(cherry picked from commit 10dafd75873f9f58037680e4d72cafc4c877583f)

---

 modules_k/xcap_server/xcap_server.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules_k/xcap_server/xcap_server.c b/modules_k/xcap_server/xcap_server.c
index 0d68bb0..6d620f4 100644
--- a/modules_k/xcap_server/xcap_server.c
+++ b/modules_k/xcap_server/xcap_server.c
@@ -1342,7 +1342,7 @@ static int check_match_header(str body, str *etag)
 	if (etag == NULL)
 		return -1;
 
-	if (etag->s || etag->len == 0)
+	if (etag->s == NULL || etag->len == 0)
 		return -1;
 
 	do




More information about the sr-dev mailing list