diff options
Diffstat (limited to 'lib/security.c')
-rw-r--r-- | lib/security.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/security.c b/lib/security.c index ff2606669..87c22da07 100644 --- a/lib/security.c +++ b/lib/security.c @@ -62,7 +62,7 @@ #include "sendf.h" #include "strcase.h" #include "warnless.h" - +#include "strdup.h" /* The last #include file should be: */ #include "memdebug.h" @@ -202,7 +202,7 @@ static CURLcode read_data(struct connectdata *conn, if(len) { /* only realloc if there was a length */ len = ntohl(len); - tmp = realloc(buf->data, len); + tmp = Curl_saferealloc(buf->data, len); } if(tmp == NULL) return CURLE_OUT_OF_MEMORY; |