fastrpc: listener: free correct amount of input buffers

The amount of input buffers might be different from the amount of output
buffers. Free the correct amount of input buffers so there is no
out-of-bounds memory access.
This commit is contained in:
Richard Acayan
2023-01-10 20:53:42 -05:00
parent cc7a41e899
commit d261ca953a

View File

@@ -256,7 +256,7 @@ int run_fastrpc_listener(int fd)
break;
if (decoded != NULL)
iobuf_free(REMOTE_SCALARS_OUTBUFS(sc), decoded);
iobuf_free(REMOTE_SCALARS_INBUFS(sc), decoded);
}
return ret;