From 5fe0dff2839ece862b5aa84398674eeb54b7f416 Mon Sep 17 00:00:00 2001 From: Christian Spielberger Date: Mon, 23 Oct 2023 11:42:15 +0200 Subject: [PATCH] sess: add NULL pointer check --- src/sipsess/sess.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }