projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8acaa9
)
If CRYPTO_realloc() is called with a NULL pointer, have it call
author
Richard Levitte
<levitte@openssl.org>
Thu, 1 Aug 2002 10:08:53 +0000
(10:08 +0000)
committer
Richard Levitte
<levitte@openssl.org>
Thu, 1 Aug 2002 10:08:53 +0000
(10:08 +0000)
OPENSSL_malloc().
PR: 187
crypto/mem.c
patch
|
blob
|
history
diff --git
a/crypto/mem.c
b/crypto/mem.c
index 3b5b2bbc681452586e6426b59520a399e25be3a4..9df2a367e7e22ed230d3b6be8508e97b0994c529 100644
(file)
--- a/
crypto/mem.c
+++ b/
crypto/mem.c
@@
-226,6
+226,9
@@
void *CRYPTO_realloc(void *str, int num, const char *file, int line)
{
void *ret = NULL;
+ if (str == NULL)
+ return CRYPTO_malloc(num, file, line);
+
if (realloc_debug_func != NULL)
realloc_debug_func(str, NULL, num, file, line, 0);
ret = realloc_func(str,num);