2
0
Эх сурвалжийг харах

htable: delete item when assigning $null

- compatibility with K style of removing item
Elena-Ramona Modroiu 16 жил өмнө
parent
commit
b9aa4016c7

+ 1 - 1
modules_k/htable/ht_var.c

@@ -83,7 +83,7 @@ int pv_set_ht_cell(struct sip_msg* msg, pv_param_t *param,
 	}
 	LM_DBG("set value for $ht(%.*s=>%.*s)\n", hpv->htname.len, hpv->htname.s,
 			htname.len, htname.s);
-	if(val==NULL)
+	if((val==NULL) || (val->flags&PV_VAL_NULL))
 	{
 		/* delete it */
 		ht_del_cell(hpv->ht, &htname);