]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
smtp: result of Curl_bufq_cread was not used
authorMonkeybreadSoftware <support@monkeybreadsoftware.de>
Wed, 17 Apr 2024 11:12:09 +0000 (13:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Apr 2024 20:44:39 +0000 (22:44 +0200)
return the result back to the caller.

Closes #13398

lib/smtp.c

index dc2f1c91804eb9c641b11959b3e3d83042dadc4b..a0cb38a8f51ea62c543aa7cc124dcb22750db264 100644 (file)
@@ -1903,7 +1903,7 @@ static CURLcode cr_eob_read(struct Curl_easy *data,
   *peos = ctx->eos;
   DEBUGF(infof(data, "cr_eob_read(%zu) -> %d, %zd, %d",
          blen, result, *pnread, *peos));
-  return CURLE_OK;
+  return result;
 }
 
 static curl_off_t cr_eob_total_length(struct Curl_easy *data,