summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2012-06-18 11:43:53 +0000
committerdtucker <dtucker@openbsd.org>2012-06-18 11:43:53 +0000
commite23e889a408dbbd3a03194f6b7c2eef100b580bc (patch)
treefc8fbc62748297d6dd3dc6c28fc73e6c3ad74ce8
parentAdd ~/.mg.d to FILES. Reviewed by jmc@ (diff)
downloadwireguard-openbsd-e23e889a408dbbd3a03194f6b7c2eef100b580bc.tar.xz
wireguard-openbsd-e23e889a408dbbd3a03194f6b7c2eef100b580bc.zip
correct sizeof usage. patch from saw at online.de, ok deraadt
-rw-r--r--usr.bin/ssh/jpake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/jpake.c b/usr.bin/ssh/jpake.c
index cb38d4d39d6..ab6715901d4 100644
--- a/usr.bin/ssh/jpake.c
+++ b/usr.bin/ssh/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.
*
@@ -131,7 +131,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);
}