]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/http: fix typo
authorOto Šťáva <oto.stava@nic.cz>
Mon, 20 May 2024 15:50:00 +0000 (17:50 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Tue, 4 Jun 2024 11:04:59 +0000 (13:04 +0200)
A missing `protolayer_break()`. C's typechecking failed me.

daemon/http.c

index 7d1f0899c5857cfd38ac51423f113a1e6364283f..425b81c8701317fe34ee402676124b2965316095 100644 (file)
@@ -969,7 +969,7 @@ static enum protolayer_iter_cb_result pl_http_unwrap(
        if (ret < 0) {
                kr_log_debug(DOH, "[%p] nghttp2_session_send failed: %s (%zd)\n",
                             (void *)http->h2, nghttp2_strerror(ret), ret);
-               return kr_error(EIO);
+               return protolayer_break(ctx, kr_error(EIO));
        }
 
        if (!http_status_has_category(http->status, 2)) {