diff options
author | Shaun Ruffell <sruffell@digium.com> | 2008-09-16 18:04:59 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2008-09-16 18:04:59 +0000 |
commit | e1756db4dbb330f1832e27e9d2cf6be5cad1fc1d (patch) | |
tree | 25a319e6e820be5f80e33e7c5323e1ffe208968f /dahdi_cfg.c | |
parent | 7c750156dff9f78e7cca52a688c0b149ec4ed903 (diff) |
Close the /dev/dahdi/channel file handle if we're unable to associate it with
a particular channel.
git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@4914 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'dahdi_cfg.c')
-rw-r--r-- | dahdi_cfg.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dahdi_cfg.c b/dahdi_cfg.c index 9859f41..c3a7ae0 100644 --- a/dahdi_cfg.c +++ b/dahdi_cfg.c @@ -678,6 +678,7 @@ static void apply_fiftysix(void) } if (ioctl(chanfd, DAHDI_SPECIFY, &x)) { + close(chanfd); continue; } |