projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prepare for 1.0.1f release
[oweals/openssl.git]
/
crypto
/
mem_clr.c
diff --git
a/crypto/mem_clr.c
b/crypto/mem_clr.c
index 00dfcff0cf046fb0c8d234d6dba9fcce7accc470..add1f780207b7a75f56264c8851bc1ac1af788e2 100644
(file)
--- 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;
}