Browse code

Merge 63190fb0f0580a276146552f14d2ee745e6d3110 into a84392d49551dcc98378e9fe2feee5f6c3fb81a4

Bastian Triller authored on 23/11/2021 08:48:07 • GitHub committed on 23/11/2021 08:48:07
Showing 2 changed files
... ...
@@ -299,7 +299,7 @@ struct lump* del_lump(struct sip_msg* msg, int offset, int len,
299 299
 		return 0;
300 300
 	}
301 301
 	if (len==0){
302
-		LM_WARN("0 len (offset=%d)\n", offset);
302
+		LM_DBG("0 len (offset=%d)\n", offset);
303 303
 	}
304 304
 
305 305
 	tmp=pkg_malloc(sizeof(struct lump));
... ...
@@ -442,10 +442,6 @@ struct replace_lst* subst_run(struct subst_expr* se, const char* input,
442 442
 				LM_ERR("Unknown offset?\n");
443 443
 				goto error;
444 444
 			}
445
-			if (pmatch[0].rm_so==pmatch[0].rm_eo) {
446
-				LM_ERR("Matched string is empty, invalid regexp?\n");
447
-				goto error;
448
-			}
449 445
 			*crt=pkg_malloc(sizeof(struct replace_lst));
450 446
 			if (*crt==0){
451 447
 				PKG_MEM_ERROR;