projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove personal configs from version control
[openssl.git]
/
crypto
/
mem.c
diff --git
a/crypto/mem.c
b/crypto/mem.c
index 16ef64c6fecf69d7cb4957b85530e2ec49fed882..9bdd5043a977a4ff6dbc9f9708653c83095e02e8 100644
(file)
--- a/
crypto/mem.c
+++ b/
crypto/mem.c
@@
-201,9
+201,10
@@
void *CRYPTO_clear_realloc(void *str, size_t old_len, size_t num,
}
ret = CRYPTO_malloc(num, file, line);
- if (ret
)
+ if (ret
!= NULL) {
memcpy(ret, str, old_len);
- CRYPTO_clear_free(str, old_len, file, line);
+ CRYPTO_clear_free(str, old_len, file, line);
+ }
return ret;
}