From: Alan T. DeKok Date: Sat, 12 Oct 2019 21:20:26 +0000 (-0400) Subject: clear our error so we don't print it. X-Git-Tag: release_3_0_20~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4c165bcd689b3656adee67b43e9eaac580e648e;p=thirdparty%2Ffreeradius-server.git clear our error so we don't print it. If we're printing an error due to packet mismatch, then there's no error from the library, and fr_strerror() should return nothing. --- diff --git a/src/main/radclient.c b/src/main/radclient.c index 0523c7769f5..52d2872b13b 100644 --- a/src/main/radclient.c +++ b/src/main/radclient.c @@ -1106,6 +1106,8 @@ static int recv_one_packet(int wait_time) * packet matched that. */ if ((request->filter_code != PW_CODE_UNDEFINED) && (request->reply->code != request->filter_code)) { + fr_strerror_printf(NULL); + if (is_radius_code(request->reply->code)) { REDEBUG("%s: Expected %s got %s", request->name, fr_packet_codes[request->filter_code], fr_packet_codes[request->reply->code]);