summaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index d809578e1..92cd7233f 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -61,6 +61,7 @@
#include "inet_ntop.h"
#include "multiif.h"
#include "warnless.h"
+#include "progress.h"
/* The last 3 #include files should be in this order */
#include "curl_printf.h"
#include "curl_memory.h"
@@ -668,8 +669,8 @@ int Curl_resolv_timeout(struct connectdata *conn,
#endif /* HAVE_SIGACTION */
volatile long timeout;
volatile unsigned int prev_alarm = 0;
- struct Curl_easy *data = conn->data;
#endif /* USE_ALARM_TIMEOUT */
+ struct Curl_easy *data = conn->data;
int rc;
*entry = NULL;
@@ -678,6 +679,8 @@ int Curl_resolv_timeout(struct connectdata *conn,
/* got an already expired timeout */
return CURLRESOLV_TIMEDOUT;
+ Curl_pgrsTime(data, TIMER_NAMELOOKUP_START);
+
#ifdef USE_ALARM_TIMEOUT
if(data->set.no_signal)
/* Ignore the timeout when signals are disabled */