gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 77/222: doh: return early if there is no time left


From: gnunet
Subject: [gnurl] 77/222: doh: return early if there is no time left
Date: Thu, 07 Nov 2019 00:09:33 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit bb7420180497f6087cd2d894253beb2532a0569e
Author: Paul Dreik <address@hidden>
AuthorDate: Mon Sep 23 13:10:12 2019 +0200

    doh: return early if there is no time left
    
    Closes #4406
---
 lib/doh.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/doh.c b/lib/doh.c
index 5a76d6d87..05a6cc235 100644
--- a/lib/doh.c
+++ b/lib/doh.c
@@ -240,7 +240,10 @@ static CURLcode dohprobe(struct Curl_easy *data,
   }
 
   timeout_ms = Curl_timeleft(data, NULL, TRUE);
-
+  if(timeout_ms <= 0) {
+    result = CURLE_OPERATION_TIMEDOUT;
+    goto error;
+  }
   /* Curl_open() is the internal version of curl_easy_init() */
   result = Curl_open(&doh);
   if(!result) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]