]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_xmpp: Don't crash when trying to send a message without a connection
authorSean Bright <sean.bright@gmail.com>
Wed, 22 Mar 2017 22:32:37 +0000 (18:32 -0400)
committerSean Bright <sean.bright@gmail.com>
Thu, 23 Mar 2017 14:54:20 +0000 (10:54 -0400)
commita487f6fb9724f2a8611aabaab5d05da76179d316
tree8622047985474714c0096a8e068a5036beccf9b2
parent90fb1fca41776e4aca48f9ddcc04145ecc62e897
res_xmpp: Don't crash when trying to send a message without a connection

If we never establish a connection to our Jabber server, iksemel never sets up
its internal transport pointer, so attempting to send a message dereferences a
NULL pointer and causes a crash.

ASTERISK-21855 #close
Reported by: Jeremy Kister

Change-Id: I204a568894e4a53ab929783ecc594a000f04d79c
res/res_xmpp.c