]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
CID 1455241
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 3 Nov 2019 19:15:04 +0000 (13:15 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 3 Nov 2019 19:15:04 +0000 (13:15 -0600)
src/bin/unit_test_attribute.c

index 8c59b1a52ef561d26ed98f24e31d32036ccff3e0..1ddb1f5fe1538da8aff74ccf7e99f193f3da6a35 100644 (file)
@@ -2064,7 +2064,7 @@ static int process_file(bool *exit_now, TALLOC_CTX *ctx, CONF_SECTION *features,
        }
 
 finish:
-       if (fp != stdin) fclose(fp);
+       if (fd && (fp != stdin)) fclose(fp);
 
        /*
         *      Free any residual resources re loaded.