[svn-commits] rmudgett: branch 1.4 r274579 - /branches/1.4/channels/chan_dahdi.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Jul 7 13:12:45 CDT 2010
Author: rmudgett
Date: Wed Jul 7 13:12:41 2010
New Revision: 274579
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=274579
Log:
Close the DAHDI FD on error when processing chan_dahdi toneduration config parameter.
Modified:
branches/1.4/channels/chan_dahdi.c
Modified: branches/1.4/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_dahdi.c?view=diff&rev=274579&r1=274578&r2=274579
==============================================================================
--- branches/1.4/channels/chan_dahdi.c (original)
+++ branches/1.4/channels/chan_dahdi.c Wed Jul 7 13:12:41 2010
@@ -12175,6 +12175,7 @@
res = ioctl(ctlfd, DAHDI_SET_DIALPARAMS, &dps);
if (res < 0) {
ast_log(LOG_ERROR, "Invalid tone duration: %d ms: %s\n", toneduration, strerror(errno));
+ close(ctlfd);
return -1;
}
}
More information about the svn-commits
mailing list