From: Alan T. DeKok Date: Fri, 24 Jun 2022 12:31:47 +0000 (-0400) Subject: clear errors before each command X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbb9bc303b507da1122de21d60bf624bb9ecc804;p=thirdparty%2Ffreeradius-server.git clear errors before each command to avoid spurious errors which are left over from previous commands --- diff --git a/src/bin/unit_test_attribute.c b/src/bin/unit_test_attribute.c index e038d9bc678..83e71591708 100644 --- a/src/bin/unit_test_attribute.c +++ b/src/bin/unit_test_attribute.c @@ -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) {