mirror of
https://github.com/curl/curl.git
synced 2026-07-24 21:07:28 +03:00
dynbuf: Fix returncode on memory error
Curl_dyn_vaddf should return a proper error code in case allocating memory failed. Closes: #13533 Author: Christian Schmitz <support@monkeybreadsoftware.de> Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
This commit is contained in:
parent
b8435242ba
commit
62e45ce9cd
1 changed files with 1 additions and 1 deletions
|
|
@ -213,7 +213,7 @@ CURLcode Curl_dyn_vaddf(struct dynbuf *s, const char *fmt, va_list ap)
|
|||
}
|
||||
/* If we failed, we cleanup the whole buffer and return error */
|
||||
Curl_dyn_free(s);
|
||||
return CURLE_OK;
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue