SAM: Make enough space for dests with certs without realloc

This commit is contained in:
zzz
2022-11-23 12:08:11 -05:00
parent 495d91193c
commit 6b2bbda02a

View File

@@ -347,7 +347,7 @@ class SAMv1Handler extends SAMHandler implements SAMRawReceiver, SAMDatagramRece
}
ByteArrayOutputStream priv = new ByteArrayOutputStream(663);
ByteArrayOutputStream pub = new ByteArrayOutputStream(387);
ByteArrayOutputStream pub = new ByteArrayOutputStream(391);
SAMUtils.genRandomKey(priv, pub, sigType);
return writeString("DEST REPLY"