From: Tilghman Lesher Date: Tue, 25 Nov 2008 21:56:48 +0000 (+0000) Subject: Don't try to send a response on a NULL pvt. X-Git-Tag: 1.4.23-rc2~3^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10e70eaecf43ba2ccac2812bc5615689f9207bb7;p=thirdparty%2Fasterisk.git 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.4@159269 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index 239aef1aa4..6349f3249e 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -6271,7 +6271,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; }