diff --git a/src/packet_crypt.c b/src/packet_crypt.c index 0f02b7f7..c30264e5 100644 --- a/src/packet_crypt.c +++ b/src/packet_crypt.c @@ -150,7 +150,7 @@ unsigned char *ssh_packet_encrypt(ssh_session session, void *data, uint32_t len) " on at least one blocksize (received %d)", len); return NULL; } - out = malloc(len); + out = calloc(1, len); if (out == NULL) { return NULL; }