diff options
author | Richard Mudgett <rmudgett@digium.com> | 2010-07-07 18:20:00 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2010-07-07 18:20:00 +0000 |
commit | d20ca64e70232413cf19f25dd4d321387dcb56ef (patch) | |
tree | 10d987db68bf645e7bd1520322a6249b9e80b522 /channels | |
parent | f03b3691eaa548e46d2bbac5e37a7b4e06544992 (diff) |
Merged revisions 274579 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r274579 | rmudgett | 2010-07-07 13:12:41 -0500 (Wed, 07 Jul 2010) | 1 line
Close the DAHDI FD on error when processing chan_dahdi toneduration config parameter.
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@274595 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r-- | channels/chan_dahdi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index e2cad3fef..2e4de8c6c 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -17043,6 +17043,7 @@ static int process_dahdi(struct dahdi_chan_conf *confp, const char *cat, struct res = ioctl(ctlfd, DAHDI_SET_DIALPARAMS, &dps); if (res < 0) { ast_log(LOG_ERROR, "Invalid tone duration: %d ms at line %d: %s\n", toneduration, v->lineno, strerror(errno)); + close(ctlfd); return -1; } } |