diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | jpake.c | 4 |
2 files changed, 5 insertions, 2 deletions
@@ -28,6 +28,9 @@ | |||
28 | [mux.c] | 28 | [mux.c] |
29 | fix memory leak when mux socket creation fails; bz#2002 from bert.wesarg | 29 | fix memory leak when mux socket creation fails; bz#2002 from bert.wesarg |
30 | AT googlemail.com | 30 | AT googlemail.com |
31 | - dtucker@cvs.openbsd.org 2012/06/18 11:43:53 | ||
32 | [jpake.c] | ||
33 | correct sizeof usage. patch from saw at online.de, ok deraadt | ||
31 | 34 | ||
32 | 20120519 | 35 | 20120519 |
33 | - (dtucker) [configure.ac] bz#2010: fix non-portable shell construct. Patch | 36 | - (dtucker) [configure.ac] bz#2010: fix non-portable shell construct. Patch |
@@ -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 | ||