diff --git a/nbd.c b/nbd.c index 306d1fa28b..e9308ee042 100644 --- a/nbd.c +++ b/nbd.c @@ -463,6 +463,7 @@ static int nbd_receive_request(int csock, struct nbd_request *request) errno = EINVAL; return -1; } + return 0; } int nbd_receive_reply(int csock, struct nbd_reply *reply)