libqb/bz2057527-fix-connect-errno.patch
Christine Caulfield aa72c395a2 Thu Mar 3 2022 Christine Caulfield <ccaulfie@redhat.com> 2.0.3-8
Fix negative errno in qb_ipcc_connect (introduced in 2.0.3-4)
 Resolves: rhbz#2057527
2022-03-03 07:45:37 +00:00

23 lines
536 B
Diff

commit f5106342d023e7cc238899ec7a567ad1eeb9b404
Author: Christine Caulfield <ccaulfie@redhat.com>
Date: Wed Mar 2 15:23:39 2022 +0000
ipcc: Fix errno returned from qb_ipcc_connect
The errno value from qb_ipcc_connect was incorrectly negated
when I introduced qb_ipcc_async_connect()
diff --git a/lib/ipcc.c b/lib/ipcc.c
index c744ea1..4f35ea2 100644
--- a/lib/ipcc.c
+++ b/lib/ipcc.c
@@ -152,7 +152,7 @@ disconnect_and_cleanup:
free(c->receive_buf);
free(c);
errno = -res;
- return -res;
+ return res;
}