Skip to content

Commit 7edd729

Browse files
committed
Add missing NULL check
1 parent 590a19f commit 7edd729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

route.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,7 @@ static int eval_elem(struct expr* e, struct sip_msg* msg, pv_value_t *val)
707707
break;
708708
default:
709709
LM_ERR("invalid int op %d\n", e->op);
710-
val->ri = 0;
710+
if(val!=NULL) val->ri = 0;
711711
pv_value_destroy(&lval);
712712
pv_value_destroy(&rval);
713713
return 0;

0 commit comments

Comments
 (0)