http_static: try_url_handler coverity fix 02/42902/1
authorMatus Fabian <[email protected]>
Sun, 27 Apr 2025 18:32:31 +0000 (14:32 -0400)
committerMatus Fabian <[email protected]>
Sun, 27 Apr 2025 18:32:31 +0000 (14:32 -0400)
Type: fix

Change-Id: I33b0ae7bb5ced718ba5ba014d06994cd19a0daef
Signed-off-by: Matus Fabian <[email protected]>
src/plugins/http_static/static_server.c

index c62fe46..692cb53 100644 (file)
@@ -346,6 +346,7 @@ try_url_handler (hss_session_t *hs)
          hs->left_recv = 0;
          start_send_data (hs, HTTP_STATUS_INTERNAL_ERROR);
          hss_session_disconnect_transport (hs);
+         return 0;
        }
       hs->rx_buff_offset = 0;
       vec_validate (hs->rx_buff, hs->left_recv - 1);