Fix test when data is too small

This commit is contained in:
satk0
2024-11-11 23:04:21 +01:00
parent 8c2b952616
commit b36ef65a10

View File

@@ -303,7 +303,6 @@ func NewKeyCertificate(bytes []byte) (key_certificate *KeyCertificate, remainder
}
if len(bytes) < KEYCERT_MIN_SIZE {
err = errors.New("error parsing key certificate: not enough data")
remainder = bytes[KEYCERT_MIN_SIZE:]
log.WithError(err).Error("KeyCertificate data too short")
}
key_certificate = &KeyCertificate{