diff options
author | Roland McGrath <roland@gnu.org> | 2001-12-30 03:00:31 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2001-12-30 03:00:31 +0000 |
commit | 9c99414523af7b93003f5765091808729e590dcb (patch) | |
tree | 6f9e124e47997228c4c3eb5aee0ce97f82385139 | |
parent | 978f8b7dd7dc68fce2adf019c13850d7d2e93ff8 (diff) |
2001-12-29 Roland McGrath <roland@frob.com>
* nbd.c (nbdopen): Fix in last change.
-rw-r--r-- | libstore/nbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstore/nbd.c b/libstore/nbd.c index 9130db43..547d3bd6 100644 --- a/libstore/nbd.c +++ b/libstore/nbd.c @@ -325,7 +325,7 @@ nbdopen (const char *name, int *mod_flags, ofs += cc; } while (cc > 0 && ofs < sizeof ns); - if (cc < sizeof ns + if (ofs != sizeof ns || memcmp (ns.magic, NBD_INIT_MAGIC, sizeof ns.magic) != 0) { close (sock); |