projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a02347a
)
Check for null name to krb5_cc_resolve, and return an error
author
Ken Raeburn
<raeburn@mit.edu>
Mon, 21 Jul 2008 20:56:28 +0000
(20:56 +0000)
committer
Ken Raeburn
<raeburn@mit.edu>
Mon, 21 Jul 2008 20:56:28 +0000
(20:56 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20560
dc483132
-0cff-0310-8789-
dd5450dbe970
src/lib/krb5/ccache/ccbase.c
patch
|
blob
|
history
diff --git
a/src/lib/krb5/ccache/ccbase.c
b/src/lib/krb5/ccache/ccbase.c
index e41573adf0c05fd2a1ae3142cac0a4cfa26b2166..2e33dc858ad24097fbbaddef3c24c6d654e2a94e 100644
(file)
--- a/
src/lib/krb5/ccache/ccbase.c
+++ b/
src/lib/krb5/ccache/ccbase.c
@@
-1,7
+1,7
@@
/*
* lib/krb5/ccache/ccbase.c
*
- * Copyright 1990,2004 by the Massachusetts Institute of Technology.
+ * Copyright 1990,2004
,2008
by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
@@
-184,6
+184,8
@@
krb5_cc_resolve (krb5_context context, const char *name, krb5_ccache *cache)
krb5_error_code err;
const krb5_cc_ops *ops;
+ if (name == NULL)
+ return KRB5_CC_BADNAME;
pfx = NULL;
cp = strchr (name, ':');
if (!cp) {