]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clear errors before each command
authorAlan T. DeKok <aland@freeradius.org>
Fri, 24 Jun 2022 12:31:47 +0000 (08:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 28 Jun 2022 00:22:09 +0000 (20:22 -0400)
to avoid spurious errors which are left over from previous commands

src/bin/unit_test_attribute.c

index e038d9bc6782b45762f7a1b067a7c36a5ef1403d..83e715917088560d186a9784ee99fb06924e847c 100644 (file)
@@ -3253,6 +3253,7 @@ static int process_file(bool *exit_now, TALLOC_CTX *ctx, command_config_t const
                command_result_t        result = { .rcode = RESULT_OK };        /* Reset to OK */
                char                    *p = strchr(buffer, '\n');
 
+               fr_strerror_clear();
                cc->lineno++;   /* The first line of the file becomes line 1 */
 
                if (lr) {