]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Clear the bio after creating a pair value from it
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 8 Oct 2021 13:30:19 +0000 (08:30 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 8 Oct 2021 13:30:19 +0000 (08:30 -0500)
src/lib/tls/pairs.c

index 751881a20504d7d9d88082e59ff132262434b899..49820f8c0c137530a7f1d8581aa5c511a5c3a0c4 100644 (file)
@@ -320,6 +320,7 @@ skip_alt:
                                talloc_free(vp);
                                goto again;
                        }
+                       fr_tls_bio_dbuff_reset(bd);     /* 'free' any data used */
 
                        fr_pair_append(pair_list, vp);
                }