summaryrefslogtreecommitdiff
path: root/util/iconfig.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-11 11:24:36 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-11 11:24:36 +0200
commitc71bf8390b9a06fa498d2cb4f8a4924309f4875e (patch)
tree5499637945b401be7c85f31ab0d0adaf09490839 /util/iconfig.c
parent596189b7b38b9869fa632f9f15fe76652c4d6a3d (diff)
New upstream version 3.1.6upstream/3.1.6
Diffstat (limited to 'util/iconfig.c')
-rw-r--r--util/iconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iconfig.c b/util/iconfig.c
index 25e0c67..49d690f 100644
--- a/util/iconfig.c
+++ b/util/iconfig.c
@@ -2681,7 +2681,7 @@ main(int argc, char **argv)
} /*endif not readonly*/
do_exit:
- if (fd_bmc != stdout) fclose(fd_bmc);
+ if (fd_bmc != NULL && fd_bmc != stdout) fclose(fd_bmc);
ipmi_close_();
if (nerrs > 0) {
printf("Warning: %d ok, %d errors occurred, last error = %d\n",ngood,nerrs,lasterr);