[PATCH] OpenSSL: Do not assume NUL termination when logging DN field mismatch

Jouni Malinen j at w1.fi
Sat Nov 28 07:08:50 PST 2026


On Fri, Nov 27, 2026 at 10:35:15AM +0000, Xiangfei Ding wrote:
> ASN1_STRING_get0_data() is not guaranteed to return a NUL-terminated
> string. Pass ASN1_STRING_length(cn) with '%.*s' when logging a DN field
> mismatch in match_dn_field().

Thanks, applied.
 
-- 
Jouni Malinen                                            PGP id EFC895FA



More information about the Hostap mailing list