summaryrefslogtreecommitdiff
path: root/jpake.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2012-06-20 21:52:18 +1000
committerDamien Miller <djm@mindrot.org>2012-06-20 21:52:18 +1000
commit276dcfd7f768300fb1d72abcd097d718ad72475a (patch)
tree8bd0658f59fd65e204b225c2a4bde833ad87a639 /jpake.c
parent2e7decfcc0bd337e90649a62599e3ee8f1321b68 (diff)
- dtucker@cvs.openbsd.org 2012/06/18 11:43:53
[jpake.c] correct sizeof usage. patch from saw at online.de, ok deraadt
Diffstat (limited to 'jpake.c')
-rw-r--r--jpake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/jpake.c b/jpake.c
index ac9a4bc34..b010dafaa 100644
--- a/jpake.c
+++ b/jpake.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: jpake.c,v 1.6 2010/09/20 04:54:07 djm Exp $ */ 1/* $OpenBSD: jpake.c,v 1.7 2012/06/18 11:43:53 dtucker Exp $ */
2/* 2/*
3 * Copyright (c) 2008 Damien Miller. All rights reserved. 3 * Copyright (c) 2008 Damien Miller. All rights reserved.
4 * 4 *
@@ -133,7 +133,7 @@ jpake_free(struct jpake_ctx *pctx)
133#undef JPAKE_BN_CLEAR_FREE 133#undef JPAKE_BN_CLEAR_FREE
134#undef JPAKE_BUF_CLEAR_FREE 134#undef JPAKE_BUF_CLEAR_FREE
135 135
136 bzero(pctx, sizeof(pctx)); 136 bzero(pctx, sizeof(*pctx));
137 xfree(pctx); 137 xfree(pctx);
138} 138}
139 139