]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-dns: Fixed busy looping when dns-client disconnected.
authorTimo Sirainen <tss@iki.fi>
Tue, 22 Oct 2013 16:12:38 +0000 (19:12 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 22 Oct 2013 16:12:38 +0000 (19:12 +0300)
src/lib-dns/dns-lookup.c

index 652185d07d9394be3fffbd4892fc2ff590cb7a09..f0e849ce30d1c21abb473423a44caa8a6a0c6e25 100644 (file)
@@ -159,10 +159,8 @@ static void dns_client_input(struct dns_client *client)
                        return;
                }
        }
-       if (ret == 0)
-               return;
 
-       if (lookup->result.error != NULL) {
+       if (ret != 0 && lookup->result.error != NULL) {
                /* already got the error */
        } else if (client->input->stream_errno != 0) {
                dns_client_disconnect(client, t_strdup_printf(