Skip to content

Commit

Permalink
uac_registrant: fix null pointer dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
jes committed Aug 22, 2023
1 parent 6ce670d commit 5823ab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/uac_registrant/registrant.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,8 @@ int run_reg_tm_cback(void *e_data, void *data, void *r_data)
goto done;
}
if (0 == parse_min_expires(msg)) {
rec->expires = (unsigned int)(long)msg->min_expires->parsed;
if (msg->min_expires)
rec->expires = (unsigned int)(long)msg->min_expires->parsed;
if(send_register(cb_param->hash_index, rec, NULL)==1)
rec->state = REGISTERING_STATE;
else
Expand Down

0 comments on commit 5823ab4

Please sign in to comment.