diff --git a/lib/rpc/rpc.c b/lib/rpc/rpc.c index f8bb35f8b..ff20a4685 100644 --- a/lib/rpc/rpc.c +++ b/lib/rpc/rpc.c @@ -391,6 +391,7 @@ spdk_rpc_get_spdk_version(struct spdk_jsonrpc_request *request, const struct spd if (params != NULL) { spdk_jsonrpc_send_error_response(request, SPDK_JSONRPC_ERROR_INVALID_PARAMS, "get_spdk_version method requires no parameters"); + return; } w = spdk_jsonrpc_begin_result(request);