]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/tls: tls client bugfix; correct processing of tcp connection closure
authorgrid <grigorii.demidov@nic.cz>
Wed, 13 Dec 2017 13:25:39 +0000 (14:25 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 8 Jan 2018 11:01:01 +0000 (12:01 +0100)
daemon/tls.c

index 2f2226e3ec5c91167fe86cf50644ae5e0064f0e1..937654ca2ab6ba891516b5894be1d0b2f726842f 100644 (file)
@@ -925,6 +925,9 @@ int tls_client_process(struct worker_ctx *worker, uv_stream_t *handle, const uin
                if (ret < 0) {
                        return ret;
                }
+               if (count == 0) {
+                       break;
+               }
                submitted += ret;
        }
        return submitted;