aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authorrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-07 18:12:41 +0000
committerrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2010-07-07 18:12:41 +0000
commitd34a29083c359d5177f3db0818073479c120c877 (patch)
treea4b97201391a26cddaa54bb3535cff2b74101926 /channels
parent650a48d377352ebd28ef441c53b16b70126567c2 (diff)
Close the DAHDI FD on error when processing chan_dahdi toneduration config parameter.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@274579 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_dahdi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index e47b56107..6111b160b 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -12175,6 +12175,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: %s\n", toneduration, strerror(errno));
+ close(ctlfd);
return -1;
}
}