diff --git a/lib/rpc/rpc.c b/lib/rpc/rpc.c index 15beac286..cae28fa91 100644 --- a/lib/rpc/rpc.c +++ b/lib/rpc/rpc.c @@ -319,6 +319,7 @@ spdk_rpc_get_version(struct spdk_jsonrpc_request *request, const struct spdk_jso 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);