Skip to content

Commit 1cfd36d

Browse files
authored
Update src/wh_server_crypto.c
1 parent af1d2ac commit 1cfd36d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wh_server_crypto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,8 @@ int wh_Server_CacheImportCurve25519Key(whServerContext* server,
453453
whNvmMetadata* cacheMeta;
454454
int ret;
455455

456-
uint8_t der_buf[MAX_DER_SIZE];
457456
/* CURVE25519_MAX_KEY_TO_DER_SZ should be 82 */
457+
uint8_t der_buf[CURVE25519_MAX_KEY_TO_DER_SZ];
458458
uint16_t keySz = sizeof(der_buf);
459459

460460

0 commit comments

Comments
 (0)