From ae28cf2d91c942558d0fa25a4be8c0644c342885 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 25 Nov 2008 21:58:48 +0000 Subject: [PATCH] Merged revisions 159276 via svnmerge from https://origsvn.digium.com/svn/asterisk/trunk ................ r159276 | tilghman | 2008-11-25 15:57:59 -0600 (Tue, 25 Nov 2008) | 14 lines Merged revisions 159269 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r159269 | tilghman | 2008-11-25 15:56:48 -0600 (Tue, 25 Nov 2008) | 7 lines Don't try to send a response on a NULL pvt. (closes issue #13919) Reported by: barthpbx Patches: chan_iax2.c.patch uploaded by eliel (license 64) Tested by: barthpbx ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@159280 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- channels/chan_iax2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 4911237973..13fa2c1734 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -7068,7 +7068,7 @@ static int update_registry(struct sockaddr_in *sin, int callno, char *devtype, i /* Make sure our call still exists, an INVAL at the right point may make it go away */ if (!iaxs[callno]) { - res = 0; + res = -1; goto return_unref; }