1
1

dh: Use calloc() instead of malloc()

Этот коммит содержится в:
Andreas Schneider 2018-01-18 18:57:18 +01:00
родитель d7c47f529f
Коммит 43bd7b6eee

Просмотреть файл

@ -973,7 +973,7 @@ int ssh_get_pubkey_hash(ssh_session session, unsigned char **hash) {
return SSH_ERROR;
}
h = malloc(sizeof(unsigned char) * MD5_DIGEST_LEN);
h = calloc(MD5_DIGEST_LEN, sizeof(unsigned char));
if (h == NULL) {
return SSH_ERROR;
}