mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
jit-trust: SAN_RFC822_NAME needs other_name union member
->san is a union, in this case we set the type to indicate we use SAN_OTHER_NAME member, but set the unstructured_name union member, that is smaller. This doesn't cause any problem, since the union has space for it. But Coverity noticed, it is wrong, so fix it.
This commit is contained in:
parent
240cd55ef6
commit
57c5a0da55
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ lws_mbedtls_x509_parse_general_name(const mbedtls_x509_buf *name_buf,
|
|||
|
||||
memset(name, 0, sizeof(*name));
|
||||
name->type = LWS_MBEDTLS_X509_SAN_OTHER_NAME;
|
||||
memcpy(&name->san.unstructured_name,
|
||||
memcpy(&name->san.other_name,
|
||||
&rfc822Name, sizeof(rfc822Name));
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue