mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
Make sure the iax_pvt exists before dereferencing it.
This fixes the latest crash posted on issue 15609. (issue #15609) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@219586 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -8423,7 +8423,7 @@ static int socket_process(struct iax2_thread *thread)
|
||||
* this connection yet. */
|
||||
if ((dcallno != 1) && (fr->callno = find_callno(ntohs(mh->callno) & ~IAX_FLAG_FULL, dcallno, &sin, NEW_PREVENT, fd, 1))) {
|
||||
ast_mutex_lock(&iaxsl[fr->callno]);
|
||||
if (ast_test_flag(iaxs[fr->callno], IAX_ENCRYPTED)) {
|
||||
if (iaxs[fr->callno] && ast_test_flag(iaxs[fr->callno], IAX_ENCRYPTED)) {
|
||||
if (decrypt_frame(fr->callno, fh, &f, &res)) {
|
||||
ast_log(LOG_NOTICE, "Packet Decrypt Failed!\n");
|
||||
ast_mutex_unlock(&iaxsl[fr->callno]);
|
||||
|
Reference in New Issue
Block a user