aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/vnet/tcp/builtin_http_server.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/vnet/tcp/builtin_http_server.c b/src/vnet/tcp/builtin_http_server.c
index 143eef66148..70daf18849a 100644
--- a/src/vnet/tcp/builtin_http_server.c
+++ b/src/vnet/tcp/builtin_http_server.c
@@ -355,8 +355,11 @@ http_server_rx_callback (stream_session_t * s)
{
http_server_main_t *hsm = &http_server_main;
builtin_http_server_args *args;
+ int rv;
- session_rx_request (s);
+ rv = session_rx_request (s);
+ if (rv)
+ return rv;
/* send the command to a new/recycled vlib process */
args = clib_mem_alloc (sizeof (*args));
@@ -385,8 +388,11 @@ http_server_rx_callback_static (stream_session_t * s)
http_server_main_t *hsm = &http_server_main;
u8 *request = 0;
int i;
+ int rv;
- session_rx_request (s);
+ rv = session_rx_request (s);
+ if (rv)
+ return rv;
request = hsm->rx_buf[s->thread_index];
if (vec_len (request) < 7)