summaryrefslogtreecommitdiffstats
path: root/crypto/mem_clr.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2007-06-23 20:47:51 +0200
committerBen Laurie <ben@openssl.org>2007-06-23 20:47:51 +0200
commit949ce10e8855f660971debe1b7b5842a84554006 (patch)
tree228e2f1cf69ba54f65fcb6eac4913baefadf76f6 /crypto/mem_clr.c
parentInline function declarations have to be prototypes. (diff)
downloadopenssl-949ce10e8855f660971debe1b7b5842a84554006.tar.xz
openssl-949ce10e8855f660971debe1b7b5842a84554006.zip
Fix warning.
Diffstat (limited to 'crypto/mem_clr.c')
-rw-r--r--crypto/mem_clr.c3
1 files changed, 2 insertions, 1 deletions
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;
}