diff options
author | Mark Spencer <markster@digium.com> | 2005-05-08 16:54:53 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-05-08 16:54:53 +0000 |
commit | 087eb40b76d00dab16515ec917085a85c0d7681b (patch) | |
tree | c54d55382da24f51d6b553bfff444e10693ab2aa /pbx.c | |
parent | 82d52ffe350b8c8851c832bd46c5b4f04704e5e6 (diff) |
Fix double unlock of hintlock (bug #4205)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5602 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rwxr-xr-x | pbx.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1919,11 +1919,12 @@ int ast_extension_state_add(const char *context, const char *exten, if (cblist->callback == callback) { cblist->data = data; ast_mutex_unlock(&hintlock); + return 0; } cblist = cblist->next; } - /* Now inserts the callback */ + /* Now insert the callback */ cblist = malloc(sizeof(struct ast_state_cb)); if (!cblist) { ast_mutex_unlock(&hintlock); |