patch-2.2.4 linux/net/sunrpc/auth.c

Next file: linux/net/sunrpc/auth_null.c
Previous file: linux/net/socket.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.3/linux/net/sunrpc/auth.c linux/net/sunrpc/auth.c
@@ -175,7 +175,8 @@
 	if (!cred)
 		cred = auth->au_ops->crcreate(task);
 
-	rpcauth_insert_credcache(auth, cred);
+	if (cred)
+		rpcauth_insert_credcache(auth, cred);
 
 	return (struct rpc_cred *) cred;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)