aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-27 15:48:57 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-27 15:48:57 +0000
commitdbb0e8dee91a50ac93e201a2a259fd2ec9a2ba28 (patch)
treefbf8430a8aa2124750c721ec5f72f17d4b9375eb /pbx
parent094a874ee9f5d19bdc4d23fdfcea83857a75defe (diff)
More fixes for referencing a structure after it has been freed. (issue #8425 reported by arkadia)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@48040 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_spool.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pbx/pbx_spool.c b/pbx/pbx_spool.c
index 2293ca9ab..6325f92eb 100644
--- a/pbx/pbx_spool.c
+++ b/pbx/pbx_spool.c
@@ -403,20 +403,20 @@ static int scan_service(char *fn, time_t now, time_t atime)
return now;
} else {
ast_log(LOG_EVENT, "Queued call to %s/%s expired without completion after %d attempt%s\n", o->tech, o->dest, o->retries - 1, ((o->retries - 1) != 1) ? "s" : "");
- free_outgoing(o);
remove_from_queue(o, "Expired");
+ free_outgoing(o);
return 0;
}
} else {
+ remove_from_queue(o, "Failed");
free_outgoing(o);
ast_log(LOG_WARNING, "Invalid file contents in %s, deleting\n", fn);
fclose(f);
- remove_from_queue(o, "Failed");
}
} else {
+ remove_from_queue(o, "Failed");
free_outgoing(o);
ast_log(LOG_WARNING, "Unable to open %s: %s, deleting\n", fn, strerror(errno));
- remove_from_queue(o, "Failed");
}
} else
ast_log(LOG_WARNING, "Out of memory :(\n");