From e5f87bbac3c3c629dace940ffcc8f8aeea368f15 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Tue, 30 Oct 2007 16:36:29 +0000 Subject: [PATCH] Jumped the gun a bit in the RaiseException app. It would always return -1 since it checked for the existence of something that will never exist. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@87573 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/pbx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/pbx.c b/main/pbx.c index 5fb02016b2..ac1c781e97 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -1301,7 +1301,7 @@ int pbx_builtin_raise_exception(struct ast_channel *chan, void *vtype) if (!ds) return -1; exception = ast_calloc(1, sizeof(struct pbx_exception)); - if (!ds->data) { + if (!exception) { ast_channel_datastore_free(ds); return -1; }