[sr-dev] git:5.5:f481071a: sipdump: fixed typo

Henning Westerholt hw at skalatan.de
Tue Jun 1 08:32:32 CEST 2021


Module: kamailio
Branch: 5.5
Commit: f481071a671009f1dcc9fe5d36870e06edc2ec4b
URL: https://github.com/kamailio/kamailio/commit/f481071a671009f1dcc9fe5d36870e06edc2ec4b

Author: Sergey Safarov <s.safarov at gmail.com>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2021-06-01T06:32:25Z

sipdump: fixed typo

(cherry picked from commit 7f226f5b08c93ed0a43113d7947730329ff7db38)

---

Modified: src/modules/sipdump/sipdump_mod.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f481071a671009f1dcc9fe5d36870e06edc2ec4b.diff
Patch: https://github.com/kamailio/kamailio/commit/f481071a671009f1dcc9fe5d36870e06edc2ec4b.patch

---

diff --git a/src/modules/sipdump/sipdump_mod.c b/src/modules/sipdump/sipdump_mod.c
index 54b5c47484..0384458639 100644
--- a/src/modules/sipdump/sipdump_mod.c
+++ b/src/modules/sipdump/sipdump_mod.c
@@ -575,7 +575,7 @@ int pv_parse_sipdump_name(pv_spec_t *sp, str *in)
 		case 8:
 			if(strncmp(in->s, "src_port", 8)==0)
 				sp->pvp.pvn.u.isname.name.n = 8;
-			if(strncmp(in->s, "dst_port", 8)==0)
+			else if(strncmp(in->s, "dst_port", 8)==0)
 				sp->pvp.pvn.u.isname.name.n = 9;
 			else goto error;
 		break;




More information about the sr-dev mailing list