]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Correct function to reset a fr_pair_list_t
authorNick Porter <nick@portercomputing.co.uk>
Fri, 8 Jan 2021 17:55:13 +0000 (17:55 +0000)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 21 Jan 2021 23:05:49 +0000 (23:05 +0000)
src/modules/rlm_radius/rlm_radius_udp.c

index e341bfdcaab370264615550e6f4bec9fbf380e87..dc81d7cd25b1ffda322b57bf18dd0b0e6ff72ba0 100644 (file)
@@ -303,7 +303,7 @@ static void udp_tracking_entry_log(fr_log_t const *log, fr_log_type_t log_type,
 static void udp_request_reset(udp_request_t *u)
 {
        TALLOC_FREE(u->packet);
-       u->extra = NULL;        /* Freed with packet */
+       fr_pair_list_clear(&u->extra);  /* Freed with packet */
 
        /*
         *      Can have packet put no u->rr