Fix smtp response timeout
[exim.git] / src / src / routers / iplookup.c
index ff67af38dd8b512832ee8c1aca559829533e3379..13849f9f1e48370a7b3a548f0ad5595f809a86f2 100644 (file)
@@ -279,7 +279,7 @@ while ((hostname = string_nextinlist(&listptr, &sep, host_buffer,
     /* Read the response and close the socket. If the read fails, try the
     next IP address. */
 
-    count = ip_recv(&query_cctx, reply, sizeof(reply) - 1, ob->timeout);
+    count = ip_recv(&query_cctx, reply, sizeof(reply) - 1, time(NULL) + ob->timeout);
     (void)close(query_cctx.sock);
     if (count <= 0)
       {