]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
more checks
authorAlan T. DeKok <aland@freeradius.org>
Thu, 14 Oct 2021 14:02:59 +0000 (10:02 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 14 Oct 2021 14:12:35 +0000 (10:12 -0400)
src/bin/fuzzer.c

index 9c2eb50087c9a2907016c9b9deb3e9e99706defb..4580a0dafef3a36d0ccb27b9f61647e7368eb321 100644 (file)
@@ -175,8 +175,8 @@ int LLVMFuzzerInitialize(int *argc, char ***argv)
                fr_exit_now(EXIT_FAILURE);
        }
 
-       if (tp->test_ctx(&decode_ctx, NULL) < 0) {
-               fr_perror("fuzzer: Failed finding test point %s", buffer);
+       if (tp->test_ctx && (tp->test_ctx(&decode_ctx, NULL) < 0)) {
+               fr_perror("fuzzer: Failed initializing test point %s", buffer);
                fr_exit_now(EXIT_FAILURE);
        }