Blame SOURCES/nfs-utils-1.3.0-gssd-default-tcp.patch

64c563
commit 1ee2184248251ff44ae1ba557f12151cb8cf93ff
64c563
Author: Chuck Lever <chuck.lever@oracle.com>
64c563
Date:   Mon Nov 2 08:47:41 2015 -0500
64c563
64c563
    gssd: Make TCP the default protocol for GSSD connections.
64c563
    
64c563
    No failure case if gssd doesn't recognize the kernel's requested
64c563
    protocol. Caught with "protocol=rdma" upcall.
64c563
    
64c563
    Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
64c563
    Signed-off-by: Steve Dickson <steved@redhat.com>
64c563
64c563
diff --git a/utils/gssd/gssd_proc.c b/utils/gssd/gssd_proc.c
64c563
index 11168b2..cee8991 100644
64c563
--- a/utils/gssd/gssd_proc.c
64c563
+++ b/utils/gssd/gssd_proc.c
64c563
@@ -348,16 +348,9 @@ create_auth_rpc_client(struct clnt_info *clp,
64c563
 	printerr(2, "creating %s client for server %s\n", clp->protocol,
64c563
 			clp->servername);
64c563
 
64c563
-	if ((strcmp(clp->protocol, "tcp")) == 0) {
64c563
-		protocol = IPPROTO_TCP;
64c563
-	} else if ((strcmp(clp->protocol, "udp")) == 0) {
64c563
+	protocol = IPPROTO_TCP;
64c563
+	if ((strcmp(clp->protocol, "udp")) == 0)
64c563
 		protocol = IPPROTO_UDP;
64c563
-	} else {
64c563
-		printerr(0, "WARNING: unrecognized protocol, '%s', requested "
64c563
-			 "for connection to server %s for user with uid %d\n",
64c563
-			 clp->protocol, clp->servername, uid);
64c563
-		goto out_fail;
64c563
-	}
64c563
 
64c563
 	switch (addr->sa_family) {
64c563
 	case AF_INET: