From 6a16eb40d6301bc18c7577c2ce2f90fd6851dad4 Mon Sep 17 00:00:00 2001 From: Alex Bligh Date: Tue, 17 May 2011 13:19:47 +0100 Subject: [PATCH] write flags value to return to the rest of program in preparation for flush --- nbd-tester-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nbd-tester-client.c b/nbd-tester-client.c index 9f7714e..1b7ec52 100644 --- a/nbd-tester-client.c +++ b/nbd-tester-client.c @@ -194,7 +194,7 @@ int setup_connection(gchar *hostname, int port, gchar* name, CONNECTION_TYPE cty READ_ALL_ERRCHK(sock, &size, sizeof(size), err_open, "Could not read size: %s", strerror(errno)); size = ntohll(size); uint16_t flags; - READ_ALL_ERRCHK(sock, buf, sizeof(uint16_t), err_open, "Could not read flags: %s", strerror(errno)); + READ_ALL_ERRCHK(sock, &flags, sizeof(uint16_t), err_open, "Could not read flags: %s", strerror(errno)); flags = ntohs(flags); *serverflags = flags; g_warning("Server flags are: %08x", flags); -- 1.7.10.4