[jpake.c]
     correct sizeof usage.  patch from saw at online.de, ok deraadt
This commit is contained in:
Damien Miller 2012-06-20 21:52:18 +10:00
parent 2e7decfcc0
commit 276dcfd7f7
2 changed files with 5 additions and 2 deletions

View File

@ -28,6 +28,9 @@
[mux.c]
fix memory leak when mux socket creation fails; bz#2002 from bert.wesarg
AT googlemail.com
- dtucker@cvs.openbsd.org 2012/06/18 11:43:53
[jpake.c]
correct sizeof usage. patch from saw at online.de, ok deraadt
20120519
- (dtucker) [configure.ac] bz#2010: fix non-portable shell construct. Patch

View File

@ -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);
}