diff options
author | Colin Watson <cjwatson@debian.org> | 2015-08-19 17:00:17 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-08-19 17:40:32 +0100 |
commit | 927d0032b865f05679d3cc052bc13cb0e6490283 (patch) | |
tree | 69f782deb79182f26069ff41e9539f17e6e44912 /digest-libc.c | |
parent | d35c65e77ab6a6a95fefa2c852827ba08e507f0b (diff) | |
parent | 810eecd6b2e03770f21e46b5cb8ce8c7fcd46da8 (diff) |
New upstream release (6.9p1).
Diffstat (limited to 'digest-libc.c')
-rw-r--r-- | digest-libc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/digest-libc.c b/digest-libc.c index a216e784e..40db00274 100644 --- a/digest-libc.c +++ b/digest-libc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: digest-libc.c,v 1.4 2014/12/21 22:27:56 djm Exp $ */ | 1 | /* $OpenBSD: digest-libc.c,v 1.5 2015/05/05 02:48:17 jsg Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2013 Damien Miller <djm@mindrot.org> | 3 | * Copyright (c) 2013 Damien Miller <djm@mindrot.org> |
4 | * Copyright (c) 2014 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2014 Markus Friedl. All rights reserved. |
@@ -172,7 +172,7 @@ ssh_digest_start(int alg) | |||
172 | const struct ssh_digest *digest = ssh_digest_by_alg(alg); | 172 | const struct ssh_digest *digest = ssh_digest_by_alg(alg); |
173 | struct ssh_digest_ctx *ret; | 173 | struct ssh_digest_ctx *ret; |
174 | 174 | ||
175 | if (digest == NULL || (ret = calloc(1, sizeof(ret))) == NULL) | 175 | if (digest == NULL || (ret = calloc(1, sizeof(*ret))) == NULL) |
176 | return NULL; | 176 | return NULL; |
177 | if ((ret->mdctx = calloc(1, digest->ctx_len)) == NULL) { | 177 | if ((ret->mdctx = calloc(1, digest->ctx_len)) == NULL) { |
178 | free(ret); | 178 | free(ret); |