From 949ce10e8855f660971debe1b7b5842a84554006 Mon Sep 17 00:00:00 2001 From: Ben Laurie Date: Sat, 23 Jun 2007 18:47:51 +0000 Subject: [PATCH] Fix warning. --- crypto/mem_clr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/mem_clr.c b/crypto/mem_clr.c index 00dfcff0cf..add1f78020 100644 --- a/crypto/mem_clr.c +++ b/crypto/mem_clr.c @@ -70,7 +70,8 @@ void OPENSSL_cleanse(void *ptr, size_t len) *(p++) = (unsigned char)ctr; ctr += (17 + ((size_t)p & 0xF)); } - if(p=memchr(ptr, (unsigned char)ctr, len)) + p=memchr(ptr, (unsigned char)ctr, len); + if(p) ctr += (63 + (size_t)p); cleanse_ctr = (unsigned char)ctr; } -- 2.25.1