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 4517e18 commit fc10bb5
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 fc10bb5

Please sign in to comment.