autofs/autofs-5.0.6-fix-rework-error-return-handling-in-rpc-code.patch
Ian Kent 7f83a080cf * Tue May 1 2012 Ian Kent <ikent@redhat.com> - 1:5.0.6-15
- fix typo in libtirpc file name.
- fix rework error return handling in rpc code.
- allow MOUNT_WAIT to override probe.
- improve UDP RPC timeout handling.
- fix segfault in get_query_dn().
- use strtok_r() in linux_version_code().
- fix sss wildcard match.
- fix dlopen() error handling in sss module.
- fix configure string length tests for sss library.
2012-05-01 14:06:07 +08:00

46 lines
1.2 KiB
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

autofs-5.0.6 - fix rework error return handling in rpc code
From: Dustin Polke <DuPol@gmx.de>
This fixes the following error:
rpc_subs.c: In function rpc_do_create_client:
rpc_subs.c:203:3: error: a label can only be part of a statement and a
declaration is not a statement
---
CHANGELOG | 1 +
lib/rpc_subs.c | 4 ++--
2 files changed, 3 insertions(+), 2 deletions(-)
--- autofs-5.0.6.orig/CHANGELOG
+++ autofs-5.0.6/CHANGELOG
@@ -33,6 +33,7 @@
- check scandir() return value.
- fix function to check mount.nfs version.
- fix typo in libtirpc file name.
+- fix rework error return handling in rpc code.
28/06/2011 autofs-5.0.6
-----------------------
--- autofs-5.0.6.orig/lib/rpc_subs.c
+++ autofs-5.0.6/lib/rpc_subs.c
@@ -155,7 +155,7 @@ static int rpc_do_create_client(struct s
CLIENT *clnt = NULL;
struct sockaddr_in in4_laddr;
struct sockaddr_in *in4_raddr;
- int type, proto;
+ int type, proto, ret;
socklen_t slen;
*client = NULL;
@@ -200,7 +200,7 @@ static int rpc_do_create_client(struct s
break;
case IPPROTO_TCP:
- int ret = connect_nb(*fd, addr, slen, &info->timeout);
+ ret = connect_nb(*fd, addr, slen, &info->timeout);
if (ret < 0)
return ret;