]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Report when certificate extensions fail to be extracted
authorNick Porter <nick@portercomputing.co.uk>
Thu, 2 Jan 2025 19:22:18 +0000 (19:22 +0000)
committerNick Porter <nick@portercomputing.co.uk>
Thu, 2 Jan 2025 19:22:18 +0000 (19:22 +0000)
src/lib/tls/pairs.c

index f2f18ca923f13dc05ce9547fa230fbcc75a60578..3ba2341345138167f2a7f548895496a5233b988b 100644 (file)
@@ -311,7 +311,10 @@ skip_alt:
 
                        fr_tls_bio_dbuff_reset(bd);     /* 'free' any data used */
 
-                       X509V3_EXT_print(bio, ext, 0, 0);
+                       if (X509V3_EXT_print(bio, ext, 0, 0) != 1) {
+                               REDEBUG("Failed extracting data for \"%s\"", da->name);
+                               goto again;
+                       }
 
                        MEM(vp = fr_pair_afrom_da(ctx, da));
                        if (fr_pair_value_from_str(vp, (char *)fr_dbuff_current(out), fr_dbuff_remaining(out),