]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Fix SEGV on pending-qualify contacts 61/261/1
authorGeorge Joseph <george.joseph@fairview5.com>
Mon, 27 Apr 2015 17:11:40 +0000 (11:11 -0600)
committerGeorge Joseph <george.joseph@fairview5.com>
Mon, 27 Apr 2015 17:11:40 +0000 (11:11 -0600)
commit99fb87ae13a1fc28bd5043600def3b373f85a0f6
treef936206632f0ecfc59a065c39e43d0de7390cbf5
parente9788056e9f60a8ef6f810f0c5d31e0f3700e3bb
res_pjsip: Fix SEGV on pending-qualify contacts

Permanent contacts that hadn't been qualified yet were missing
their contact_status entries causing SEGVs when running CLI
commands.

This patch makes sure that contact_statuses are created for
both dynamic and permanent contacts when they are created.
It also adds checks in the CLI code to make sure there's a
contact_status, just in case.

ASTERISK-25018 #close
Reported-by: Ivan Poddubny
Tested-by: Ivan Poddubny
Tested-by: George Joseph
Change-Id: I3cc13e5cedcafb24c400368b515b02d7fb81e029
res/res_pjsip/include/res_pjsip_private.h
res/res_pjsip/location.c
res/res_pjsip/pjsip_options.c