| 1234567891011121314151617181920212223242526272829 | --- openssh-5.3p1.orig/jpake.c	2009-03-05 14:58:22.000000000 +0100+++ openssh-5.3p1/jpake.c	2009-12-05 12:10:19.000000000 +0100@@ -104,7 +104,7 @@ jpake_free(struct jpake_ctx *pctx) #define JPAKE_BUF_CLEAR_FREE(v, l)		\ 	do {					\ 		if ((v) != NULL) {		\-			bzero((v), (l));	\+			memset((v), 0, (l));	\ 			xfree(v);		\ 			(v) = NULL;		\ 			(l) = 0;		\@@ -132,7 +132,7 @@ jpake_free(struct jpake_ctx *pctx) #undef JPAKE_BN_CLEAR_FREE #undef JPAKE_BUF_CLEAR_FREE -	bzero(pctx, sizeof(pctx));+	memset(pctx, 0, sizeof(pctx)); 	xfree(pctx); } @@ -437,7 +437,7 @@ jpake_check_confirm(const BIGNUM *k, 	else if (memcmp(peer_confirm_hash, expected_confirm_hash, 	    expected_confirm_hash_len) == 0) 		success = 1;-	bzero(expected_confirm_hash, expected_confirm_hash_len);+	memset(expected_confirm_hash, 0, expected_confirm_hash_len); 	xfree(expected_confirm_hash); 	debug3("%s: success = %d", __func__, success); 	return success;
 |