From cb9be6f991989fcffc520eb11ac13ae25c05fbcb Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 31 Mar 2019 19:58:42 +0200 Subject: [PATCH] fix NULL dereference --- lib/config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.cpp b/lib/config.cpp index 408a80d1c..ec614f4b1 100644 --- a/lib/config.cpp +++ b/lib/config.cpp @@ -57,7 +57,7 @@ Config::~Config() /* Close configuration file */ if (remote_file) afclose(remote_file); - else if (local_file != stdin) + else if (local_file && local_file != stdin) fclose(local_file); if (root)