src/client.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
New commits: commit fd8cddc708175572baf278fd230075042d942949 Author: David Teigland teigland@redhat.com Date: Wed Apr 1 15:33:38 2015 -0500
sanlock: fix return value in sanlock_version
bug in the previous commit
Signed-off-by: David Teigland teigland@redhat.com
diff --git a/src/client.c b/src/client.c index 85f1f3a..0f7a298 100644 --- a/src/client.c +++ b/src/client.c @@ -1017,8 +1017,11 @@ int sanlock_version(uint32_t flags, uint32_t *version, uint32_t *proto) rv = -errno; goto out; } - if (rv != sizeof(h)) + + if (rv != sizeof(h)) { + rv = -1; goto out; + }
if (proto) *proto = h.version;
sanlock-devel@lists.fedorahosted.org