1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

examples: fix sizeof lws_tls_cert_info_results in test_jwt_RS256

This commit is contained in:
Pavel Otchertsov 2021-10-01 12:05:11 +03:00 committed by Andy Green
parent d447f8f1db
commit d18aa1ee0b

View file

@ -860,7 +860,7 @@ test_jwt_RS256(struct lws_context *context)
}
if (lws_x509_info(pub, LWS_TLS_CERT_INFO_DER_RAW, der_info,
LWS_ARRAY_SIZE(der_buf) - sizeof(der_info) +
LWS_ARRAY_SIZE(der_buf) - sizeof(*der_info) +
sizeof(der_info->ns.name)) ||
der_info->ns.len <= 0) {
lwsl_err("%s: failed to parse x509 public key\n", __func__);