mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
Switch strncpy to memcpy in the altname store function.
This commit is contained in:
@ -9771,7 +9771,7 @@ int wolfSSL_X509_add_altname(WOLFSSL_X509* x509, const char* name, int type)
|
|||||||
return WOLFSSL_FAILURE;
|
return WOLFSSL_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
XSTRNCPY(nameCopy, name, nameSz);
|
XMEMCPY(nameCopy, name, nameSz + 1);
|
||||||
|
|
||||||
newAltName->next = x509->altNames;
|
newAltName->next = x509->altNames;
|
||||||
newAltName->type = type;
|
newAltName->type = type;
|
||||||
|
Reference in New Issue
Block a user