[sr-dev] [kamailio/kamailio] presence: fix crush if dialog id is NULL (#817)

Dmitri Savolainen notifications at github.com
Fri Oct 7 18:44:33 CEST 2016


- check dialog_id is not NULL before call delete_presentity_if_dialog_id_exists

sometimes after  check_if_dialog(str body, int *is_dialog, char **dialog_id) it is possible
is_dialog==1
dialog_id==NULL

#0  __strcmp_sse42 () at ../sysdeps/x86_64/multiarch/strcmp.S:260
#1  0x00007feb2e446603 in delete_presentity_if_dialog_id_exists (presentity=0x7feb545c8ca8, dialog_id=0x0) at presentity.c:419

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/817

-- Commit Summary --

  * presence: fix crush if dialog id is NULL

-- File Changes --

    M modules/presence/presentity.c (2)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/817.patch
https://github.com/kamailio/kamailio/pull/817.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/817
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-dev/attachments/20161007/3d91f524/attachment.html>


More information about the sr-dev mailing list