diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-02-17 20:56:53 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-02-17 20:56:53 +0100 |
commit | 2adeca46f677bacad1914a3a1eedabaf710c71ad (patch) | |
tree | 71028a415516aa9c702e86a6959cb9d2101229a6 /util/ipmidir.c | |
parent | 842dcead48ee80a10afa6e03667e9bf74cb8f2ab (diff) | |
parent | d3c90cdcdf56146af89056ed36bfcc7b4d4956c5 (diff) |
Merge tag 'upstream/2.9.8'
Upstream version 2.9.8
Diffstat (limited to 'util/ipmidir.c')
-rw-r--r-- | util/ipmidir.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/util/ipmidir.c b/util/ipmidir.c index 501f47b..2aeb6f3 100644 --- a/util/ipmidir.c +++ b/util/ipmidir.c @@ -473,8 +473,10 @@ int ipmi_close_direct(void) { int status = 0; #if defined(BSD) || defined(MACOS) || defined(HPUX) - close(iofd); - iofd = -1; + if (iofd >= 0) { + close(iofd); + iofd = -1; + } #endif /* clear lock for driverless interface */ status = clear_lock_dir(); |