diff options
author | Colin Watson <cjwatson@debian.org> | 2013-11-09 12:09:48 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2013-11-09 12:09:48 +0000 |
commit | 210ca37aa0cdf5499f0ea847ec150fefbfbf7c39 (patch) | |
tree | 64829a84f903d7e2d3270c43e3f80df7db2a6a10 /schnorr.c | |
parent | 74e339b8f8936bc0d985e053a076d0c9b5e9ea51 (diff) | |
parent | ee196dab7c5f97f0b80c8099343a375bead92010 (diff) |
merge 6.4p1
Diffstat (limited to 'schnorr.c')
-rw-r--r-- | schnorr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: schnorr.c,v 1.7 2013/05/17 00:13:14 djm Exp $ */ | 1 | /* $OpenBSD: schnorr.c,v 1.8 2013/11/08 00:39:15 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2008 Damien Miller. All rights reserved. | 3 | * Copyright (c) 2008 Damien Miller. All rights reserved. |
4 | * | 4 | * |
@@ -549,7 +549,7 @@ modp_group_from_g_and_safe_p(const char *grp_g, const char *grp_p) | |||
549 | { | 549 | { |
550 | struct modp_group *ret; | 550 | struct modp_group *ret; |
551 | 551 | ||
552 | ret = xmalloc(sizeof(*ret)); | 552 | ret = xcalloc(1, sizeof(*ret)); |
553 | ret->p = ret->q = ret->g = NULL; | 553 | ret->p = ret->q = ret->g = NULL; |
554 | if (BN_hex2bn(&ret->p, grp_p) == 0 || | 554 | if (BN_hex2bn(&ret->p, grp_p) == 0 || |
555 | BN_hex2bn(&ret->g, grp_g) == 0) | 555 | BN_hex2bn(&ret->g, grp_g) == 0) |