]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Clear out strerror buffer to avoid spurious error messages
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 May 2018 18:43:50 +0000 (00:43 +0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 31 May 2018 18:43:50 +0000 (00:43 +0600)
src/main/radclient.c

index d79684011ee64f3e55dda1d35b47af9ad712ae05..ad9f6c01700f8d184da40b79785040b4922959b0 100644 (file)
@@ -1126,6 +1126,8 @@ static int recv_one_packet(int wait_time)
                stats.rejected++;
        }
 
+       fr_strerror();  /* Clear strerror buffer */
+
        /*
         *      If we had an expected response code, check to see if the
         *      packet matched that.