Module: kamailio Branch: master Commit: c9c30cf84fd352eb5b37b4cf5c712dc4f384563c URL: https://github.com/kamailio/kamailio/commit/c9c30cf84fd352eb5b37b4cf5c712dc4...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: GitHub noreply@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/c9c30cf84fd352eb5b37b4cf5c712dc4... Patch: https://github.com/kamailio/kamailio/commit/c9c30cf84fd352eb5b37b4cf5c712dc4...
---
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 {