diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-03 10:16:42 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-07-03 10:17:37 +0200 |
commit | 8690b98e7c88b86a8862f168b55cb33e917cca94 (patch) | |
tree | ae657738546183096403de920fe9c1f637e21780 | |
parent | 8bb0720ebb56c595b6fdccbfc6c611387a82cfe5 (diff) |
isdnsync: Remove a double close of the isdn device
The fd is already closed above the if statement and Coverity
detected this as a double close.
Fixes: Coverity CID 1040703
-rw-r--r-- | openbsc/src/utils/isdnsync.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/openbsc/src/utils/isdnsync.c b/openbsc/src/utils/isdnsync.c index d8fca761b..cc8ff6723 100644 --- a/openbsc/src/utils/isdnsync.c +++ b/openbsc/src/utils/isdnsync.c @@ -57,7 +57,6 @@ int mISDN_open(void) if (!(devinfo.Dprotocols & (1 << ISDN_P_TE_S0)) && !(devinfo.Dprotocols & (1 << ISDN_P_TE_E1))) { fprintf(stderr,"Interface does not support TE mode (%s)\n", strerror(errno)); - close(fd); return ret; } fd = socket(PF_ISDN, SOCK_DGRAM, ISDN_P_LAPD_TE); |