aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dh.c b/src/dh.c
index 31b8baec..26e47994 100644
--- a/src/dh.c
+++ b/src/dh.c
@@ -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;
}