aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-25 21:56:48 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-11-25 21:56:48 +0000
commit1b749225bfa9fdd4b23bf608ef8ff1110e7fe407 (patch)
tree174515386a0887c7f9fb171b36b018659ba52273
parent31c498d5dafb1f7935e19c7d5b589606aa1c41c9 (diff)
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: http://svn.digium.com/svn/asterisk/branches/1.4@159269 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--channels/chan_iax2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c
index 239aef1aa..6349f3249 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;
}