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 a1c8b9b sanlock: fix missing fd close after send_header error a1c8b9b is described below
commit a1c8b9b411da3ed19f260a4dca3e6733122c217a Author: David Teigland teigland@redhat.com AuthorDate: Mon Mar 17 13:42:56 2025 -0500
sanlock: fix missing fd close after send_header error --- src/client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/client.c b/src/client.c index 33228b3..e2a85a5 100644 --- a/src/client.c +++ b/src/client.c @@ -1275,7 +1275,7 @@ int sanlock_acquire(int sock, int pid, uint32_t flags, int res_count,
rv = send_header(fd, SM_CMD_ACQUIRE, flags, datalen, res_count, data2); if (rv < 0) - return rv; + goto out;
for (i = 0; i < res_count; i++) { res = res_args[i]; @@ -1346,7 +1346,7 @@ int sanlock_inquire(int sock, int pid, uint32_t flags, int *res_count,
rv = send_header(fd, SM_CMD_INQUIRE, flags, 0, 0, data2); if (rv < 0) - return rv; + goto out;
/* get result */
sanlock-devel@lists.fedorahosted.org