diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-05 02:48:18 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-05 02:48:18 +0000 |
commit | 82f145510eb886be282d2b65ae924ede52dba251 (patch) | |
tree | aaf0546df462c7f76d6bc9fe4ae3ddf5bb1940b2 /usr.bin/ssh | |
parent | 40b409238afa7889605830c063f16b4d731eaec2 (diff) |
use the sizeof the struct not the sizeof a pointer to the struct
in ssh_digest_start()
This file is only used if ssh is built with OPENSSL=no
ok markus@
Diffstat (limited to 'usr.bin/ssh')
-rw-r--r-- | usr.bin/ssh/digest-libc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/digest-libc.c b/usr.bin/ssh/digest-libc.c index 8291de41d6a..f75225a3e25 100644 --- a/usr.bin/ssh/digest-libc.c +++ b/usr.bin/ssh/digest-libc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: digest-libc.c,v 1.4 2014/12/21 22:27:56 djm Exp $ */ +/* $OpenBSD: digest-libc.c,v 1.5 2015/05/05 02:48:17 jsg Exp $ */ /* * Copyright (c) 2013 Damien Miller <djm@mindrot.org> * Copyright (c) 2014 Markus Friedl. All rights reserved. @@ -166,7 +166,7 @@ ssh_digest_start(int alg) const struct ssh_digest *digest = ssh_digest_by_alg(alg); struct ssh_digest_ctx *ret; - if (digest == NULL || (ret = calloc(1, sizeof(ret))) == NULL) + if (digest == NULL || (ret = calloc(1, sizeof(*ret))) == NULL) return NULL; if ((ret->mdctx = calloc(1, digest->ctx_len)) == NULL) { free(ret); |