aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/krb/srv_rcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/krb/srv_rcache.c')
-rw-r--r--src/lib/krb5/krb/srv_rcache.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/krb5/krb/srv_rcache.c b/src/lib/krb5/krb/srv_rcache.c
index c94201b..04e9707 100644
--- a/src/lib/krb5/krb/srv_rcache.c
+++ b/src/lib/krb5/krb/srv_rcache.c
@@ -48,6 +48,9 @@ krb5_get_server_rcache(context, piece, rcptr)
unsigned long uid = geteuid();
#endif
+ if (piece == NULL)
+ return ENOMEM;
+
rcache = (krb5_rcache) malloc(sizeof(*rcache));
if (!rcache)
return ENOMEM;