mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-19 00:00:09 +00:00
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
This commit is contained in:
@@ -1301,7 +1301,7 @@ int pbx_builtin_raise_exception(struct ast_channel *chan, void *vtype)
|
|||||||
if (!ds)
|
if (!ds)
|
||||||
return -1;
|
return -1;
|
||||||
exception = ast_calloc(1, sizeof(struct pbx_exception));
|
exception = ast_calloc(1, sizeof(struct pbx_exception));
|
||||||
if (!ds->data) {
|
if (!exception) {
|
||||||
ast_channel_datastore_free(ds);
|
ast_channel_datastore_free(ds);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user