소스 검색

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

Daniel-Constantin Mierla 7 년 전
부모
커밋
dec17cb6af
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/modules/htable/htable.c

+ 1 - 0
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;