From a56301464613d406eeaa69dabad083f7dfeecd68 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 2 Jun 2022 13:43:25 +0900 Subject: [PATCH] webclient: make webclient_get_tunnel assert http_status --- netutils/webclient/webclient.c | 1 + 1 file changed, 1 insertion(+) diff --git a/netutils/webclient/webclient.c b/netutils/webclient/webclient.c index 3b1e32fc3..f5599e9ca 100644 --- a/netutils/webclient/webclient.c +++ b/netutils/webclient/webclient.c @@ -2430,6 +2430,7 @@ int webclient_get_tunnel(FAR struct webclient_context *ctx, struct webclient_conn_s *conn; _CHECK_STATE(ctx, WEBCLIENT_CONTEXT_STATE_TUNNEL_ESTABLISHED); + DEBUGASSERT(ctx->http_status / 100 == 2); ws = ctx->ws; DEBUGASSERT(ws != NULL); conn = ws->conn;