diff --git a/src/sipsess/sess.c b/src/sipsess/sess.c index 511a6e062..85ed42fc4 100644 --- a/src/sipsess/sess.c +++ b/src/sipsess/sess.c @@ -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; }