Signed-off-by: Alex Bligh <[email protected]>
---
 nbd-tester-client.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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.1


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general

Reply via email to