[sr-dev] git:master:c9c30cf8: Merge pull request #2605 from nchaigne/master-202101-rm-by-index

GitHub noreply at github.com
Mon Jan 25 10:40:20 CET 2021


Module: kamailio
Branch: master
Commit: c9c30cf84fd352eb5b37b4cf5c712dc4f384563c
URL: https://github.com/kamailio/kamailio/commit/c9c30cf84fd352eb5b37b4cf5c712dc4f384563c

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: GitHub <noreply at github.com>
Date: 2021-01-25T10:40:13+01:00

Merge pull request #2605 from nchaigne/master-202101-rm-by-index

core: fix to xavp_rm_internal (#2604)

---

Modified: src/core/xavp.c

---

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

---

diff --git a/src/core/xavp.c b/src/core/xavp.c
index de6da0c858..26e89a8df3 100644
--- a/src/core/xavp.c
+++ b/src/core/xavp.c
@@ -454,6 +454,8 @@ static int xavp_rm_internal(str *name, sr_xavp_t **head, int idx)
 				if(idx>=0)
 					return 1;
 				count++;
+			} else {
+				prv = foo;
 			}
 			n++;
 		} else {
@@ -1914,6 +1916,8 @@ static int xavi_rm_internal(str *name, sr_xavp_t **head, int idx)
 				if(idx>=0)
 					return 1;
 				count++;
+			} else {
+				prv = foo;
 			}
 			n++;
 		} else {




More information about the sr-dev mailing list