api: fix vlibmemory coverity warning CID-300152

Type: fix

Change-Id: Icdebc8629946e0e7c8dde3e45ee93ff9027e7c68
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
This commit is contained in:
Dave Wallace
2023-08-22 23:42:02 -04:00
committed by Andrew Yourtchenko
parent 7bf8f5e484
commit 7f9b690b06

View File

@@ -288,6 +288,10 @@ vl_socket_read_ready (clib_file_t * uf)
}
rp = vl_socket_get_registration (reg_index);
if (!rp)
{
return 0;
}
/* Ignore unprocessed_input for now, n describes input_buffer for now. */
n = read (uf->file_descriptor, socket_main.input_buffer,