]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
clear our error so we don't print it.
authorAlan T. DeKok <aland@freeradius.org>
Sat, 12 Oct 2019 21:20:26 +0000 (17:20 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 12 Oct 2019 21:20:26 +0000 (17:20 -0400)
If we're printing an error due to packet mismatch, then there's
no error from the library, and fr_strerror() should return nothing.

src/main/radclient.c

index 0523c7769f5b51a0534338e86f994eb228323fa9..52d2872b13b5336284c44c7606161f2998d1e53b 100644 (file)
@@ -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]);