Skip to content

Commit

Permalink
sess: add NULL pointer check
Browse files Browse the repository at this point in the history
  • Loading branch information
cspiel1 committed Oct 23, 2023
1 parent 573a882 commit c51b45b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sipsess/sess.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,5 +356,5 @@ bool sipsess_refresh_allowed(const struct sipsess *sess)

bool sipsess_ack_pending(const struct sipsess *sess)
{
return sess->replyl.head ? true : false;
return sess && sess->replyl.head ? true : false;
}

0 comments on commit c51b45b

Please sign in to comment.