This is an automated email from the git hooks/post-receive script.
teigland pushed a commit to branch master
in repository sanlock.
The following commit(s) were added to refs/heads/master by this push:
new cb3a44f sanlock: read_resource with no resource not a lib client error
cb3a44f is described below
commit cb3a44f933354b0468a67d8fb410ebc2d7067ccd
Author: David Teigland <teigland(a)redhat.com>
AuthorDate: Thu Oct 25 08:40:58 2018 -0500
sanlock: read_resource with no resource not a lib client error
When sanlock_read_resource() is used to check if a
resource exists and it doesn't, handle it through
the normal exit path instead of an error path.
---
src/client.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/client.c b/src/client.c
index 21c90c3..1cf6029 100644
--- a/src/client.c
+++ b/src/client.c
@@ -535,10 +535,6 @@ int sanlock_read_resource(struct sanlk_resource *res, uint32_t
flags)
goto out;
}
- rv = (int)h.data;
- if (rv < 0)
- goto out;
-
rv = recv_data(fd, res, sizeof(struct sanlk_resource), MSG_WAITALL);
if (rv < 0) {
rv = -errno;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
Show replies by thread