Skip to content

Commit

Permalink
SIP PN support: Fix possible NULL dereference
Browse files Browse the repository at this point in the history
CID #211389

(cherry picked from commit a5fbad5)
  • Loading branch information
liviuchircu committed Jul 17, 2020
1 parent 2fd7f2a commit cc5bc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reg/pn.c
Expand Up @@ -854,7 +854,7 @@ int pn_add_reply_purr(const ucontact_t *ct)
struct sip_uri puri;
struct pn_provider *prov;

if (!pn_enable_purr)
if (!pn_enable_purr || !ct)
return 0;

if (parse_uri(ct->c.s, ct->c.len, &puri) != 0) {
Expand Down

0 comments on commit cc5bc2e

Please sign in to comment.