summaryrefslogtreecommitdiffstats
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 ac9a4bc3..b010dafa 100644
--- a/jpake.c
+++ b/jpake.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jpake.c,v 1.6 2010/09/20 04:54:07 djm Exp $ */
+/* $OpenBSD: jpake.c,v 1.7 2012/06/18 11:43:53 dtucker Exp $ */
/*
* Copyright (c) 2008 Damien Miller. All rights reserved.
*
@@ -133,7 +133,7 @@ jpake_free(struct jpake_ctx *pctx)
#undef JPAKE_BN_CLEAR_FREE
#undef JPAKE_BUF_CLEAR_FREE
- bzero(pctx, sizeof(pctx));
+ bzero(pctx, sizeof(*pctx));
xfree(pctx);
}