[sr-dev] git:master:dec17cb6: htable: proper return on match for sw operator whith rm functions

Daniel-Constantin Mierla miconda at gmail.com
Tue Sep 4 11:26:35 CEST 2018


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-09-04T11:25:21+02:00

htable: proper return on match for sw operator whith rm functions

---

Modified: src/modules/htable/htable.c

---

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

---

diff --git a/src/modules/htable/htable.c b/src/modules/htable/htable.c
index 4070bf7b74..214b6e3608 100644
--- a/src/modules/htable/htable.c
+++ b/src/modules/htable/htable.c
@@ -489,6 +489,7 @@ static int ht_rm_items(sip_msg_t* msg, str* hname, str* op, str *val,
 				if(ht_rm_cell_op(val, ht, mkey, HT_RM_OP_SW)<0) {
 					return -1;
 				}
+				return 1;
 			}
 			LM_WARN("unsupported match operator: %.*s\n", op->len, op->s);
 			break;




More information about the sr-dev mailing list