[sr-dev] git:master: modules/msrp: Fixed error in msrp_cmap_lookup()

Peter Dunkley peter.dunkley at crocodile-rcs.com
Wed Feb 6 13:37:13 CET 2013


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

Author: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Committer: Peter Dunkley <peter.dunkley at crocodile-rcs.com>
Date:   Wed Feb  6 12:36:52 2013 +0000

modules/msrp: Fixed error in msrp_cmap_lookup()

---

 modules/msrp/msrp_cmap.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/modules/msrp/msrp_cmap.c b/modules/msrp/msrp_cmap.c
index 23a216b..f558172 100644
--- a/modules/msrp/msrp_cmap.c
+++ b/modules/msrp/msrp_cmap.c
@@ -354,8 +354,7 @@ int msrp_cmap_lookup(msrp_frame_t *mf)
 	{
 		if(itb->citemid>hid) {
 			break;
-		}
-		if(itb->citemid>hid) {
+		} else {
 			if(itb->sessionid.len == sesid.len
 					&& memcmp(itb->sessionid.s, sesid.s, sesid.len)==0) {
 				LM_DBG("found session [%.*s]\n", sesid.len, sesid.s);




More information about the sr-dev mailing list