From c503f5757443336748d0e74e90b0b51e21cdf117 Mon Sep 17 00:00:00 2001 From: Christoph Valentin Date: Thu, 25 Jan 2018 13:51:54 +0100 Subject: [PATCH] pua: removed null pointer access from subscribe_cbparam() A newly introduced condition in an if () statement leads to core dump in some scenarios. It is removed. --- src/modules/pua/send_subscribe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/pua/send_subscribe.c b/src/modules/pua/send_subscribe.c index b75290b936d..187e5e6e752 100644 --- a/src/modules/pua/send_subscribe.c +++ b/src/modules/pua/send_subscribe.c @@ -821,7 +821,7 @@ ua_pres_t* subscribe_cbparam(subs_info_t* subs, int ua_flag) { CONT_COPY(hentity, hentity->id, subs->id); } - if(subs->extra_headers && hentity->extra_headers->s) + if(subs->extra_headers) { hentity->extra_headers= (str*)((char*)hentity+ size); size+= sizeof(str);