From 9e9f0c49983bd1b10a518d08fb3f2223df4b542f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 14 Jul 2020 23:30:01 +0200 Subject: fixup assert Assisted-by: Erik Johansson --- lib/http2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/http2.c b/lib/http2.c index fc88a2dce..e4fa9b0b3 100644 --- a/lib/http2.c +++ b/lib/http2.c @@ -742,7 +742,7 @@ static int on_frame_recv(nghttp2_session *session, const nghttp2_frame *frame, rv = push_promise(data_s, conn, &frame->push_promise); if(rv) { /* deny! */ int h2; - DEBUGASSERT((rv > CURL_PUSH_OK) && (rv < CURL_PUSH_ERROROUT)); + DEBUGASSERT((rv > CURL_PUSH_OK) && (rv <= CURL_PUSH_ERROROUT)); h2 = nghttp2_submit_rst_stream(session, NGHTTP2_FLAG_NONE, frame->push_promise.promised_stream_id, NGHTTP2_CANCEL); -- cgit v1.2.1