patch-2.2.4 linux/net/sunrpc/auth_null.c
Next file: linux/net/sunrpc/auth_unix.c
Previous file: linux/net/sunrpc/auth.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Mon Mar 22 08:00:15 1999
- Orig file:
v2.2.3/linux/net/sunrpc/auth_null.c
- Orig date:
Mon Apr 7 11:35:33 1997
diff -u --recursive --new-file v2.2.3/linux/net/sunrpc/auth_null.c linux/net/sunrpc/auth_null.c
@@ -49,8 +49,11 @@
{
struct rpc_cred *cred;
- if (!(cred = (struct rpc_cred *) rpc_malloc(task, sizeof(*cred))))
+ if (!(cred = (struct rpc_cred *) rpc_malloc(task, sizeof(*cred)))) {
+ task->tk_status = -ENOMEM;
return NULL;
+ }
+
cred->cr_count = 0;
cred->cr_flags = RPCAUTH_CRED_UPTODATE;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)