[asterisk-commits] jpeeler: trunk r222463 - in /trunk: ./ channels/chan_dahdi.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Oct 6 18:56:06 CDT 2009
Author: jpeeler
Date: Tue Oct 6 18:56:01 2009
New Revision: 222463
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=222463
Log:
Merged revisions 222462 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r222462 | jpeeler | 2009-10-06 18:51:19 -0500 (Tue, 06 Oct 2009) | 8 lines
Add missing unlock(s) in dahdi_read
(two cases in trunk)
(closes issue #15683)
Reported by: alecdavis
........
Modified:
trunk/ (props changed)
trunk/channels/chan_dahdi.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_dahdi.c?view=diff&rev=222463&r1=222462&r2=222463
==============================================================================
--- trunk/channels/chan_dahdi.c (original)
+++ trunk/channels/chan_dahdi.c Tue Oct 6 18:56:01 2009
@@ -7674,7 +7674,10 @@
return NULL;
}
- if ((p->radio || (p->oprmode < 0)) && p->inalarm) return NULL;
+ if ((p->radio || (p->oprmode < 0)) && p->inalarm) {
+ ast_mutex_unlock(&p->lock);
+ return NULL;
+ }
p->subs[idx].f.frametype = AST_FRAME_NULL;
p->subs[idx].f.datalen = 0;
@@ -7977,6 +7980,7 @@
if (res < 0) {
ast_log(LOG_WARNING, "Unable to initiate dialing on trunk channel %d\n", p->channel);
p->dop.dialstr[0] = '\0';
+ ast_mutex_unlock(&p->lock);
return NULL;
} else {
ast_log(LOG_DEBUG, "Sent deferred digit string: %s\n", p->dop.dialstr);
More information about the asterisk-commits
mailing list