Skip to content

Commit 28fe667

Browse files
authored
Merge pull request #2042 from l2dy/route
Add missing NULL check
2 parents a0b69ed + 7edd729 commit 28fe667

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)