File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,8 @@ int do_assign(struct sip_msg* msg, struct action* a)
239
239
if (a -> elem [1 ].type != NULLV_ST )
240
240
{
241
241
ret = eval_expr ((struct expr * )a -> elem [1 ].u .data , msg , & val );
242
- if (!((val .flags & PV_VAL_STR )|| (val .flags & PV_VAL_INT ))) {
242
+ if (!(val .flags & (PV_VAL_STR | PV_VAL_INT | PV_VAL_NULL )))
243
+ {
243
244
LM_WARN ("no value in right expression on line %d\n" ,a -> line );
244
245
goto error2 ;
245
246
}
@@ -268,7 +269,7 @@ int do_assign(struct sip_msg* msg, struct action* a)
268
269
(unsigned char )a -> type == BOREQ_T ? "b-or-eq" :"b-xor-eq" ,
269
270
msg , a -> line );
270
271
271
- if (a -> elem [1 ].type == NULLV_ST )
272
+ if (a -> elem [1 ].type == NULLV_ST || ( val . flags & PV_VAL_NULL ) )
272
273
{
273
274
if (pv_set_value (msg , dspec , (int )a -> type , 0 )< 0 )
274
275
{
You can’t perform that action at this time.
0 commit comments