diff --git a/lib/dynbuf.c b/lib/dynbuf.c index a4c599d10c..3b62eaf8a4 100644 --- a/lib/dynbuf.c +++ b/lib/dynbuf.c @@ -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 }