Skip to content

Commit

Permalink
pua: proper safety check on subs->extra_headers->s for subscribe_cbpa…
Browse files Browse the repository at this point in the history
…ram()

- dicovered via GH PR #1409

(cherry picked from commit cda1d08)
  • Loading branch information
miconda committed Feb 22, 2018
1 parent d5140f1 commit dda84fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/pua/send_subscribe.c
Expand Up @@ -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 && subs->extra_headers->s)
{
hentity->extra_headers= (str*)((char*)hentity+ size);
size+= sizeof(str);
Expand Down

0 comments on commit dda84fd

Please sign in to comment.