ccs_ccache_reset should check all arguments for NULL
authorAlexandra Ellwood <lxs@mit.edu>
Mon, 10 Mar 2008 19:07:54 +0000 (19:07 +0000)
committerAlexandra Ellwood <lxs@mit.edu>
Mon, 10 Mar 2008 19:07:54 +0000 (19:07 +0000)
ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20259 dc483132-0cff-0310-8789-dd5450dbe970

src/ccapi/server/ccs_ccache.c

index ca41a87567782cbffc59cc66d95427eb7a937298..2f7d45d8b6ba62254c69160d02a7c541a10fbabd 100644 (file)
@@ -154,7 +154,9 @@ cc_int32 ccs_ccache_reset (ccs_ccache_t            io_ccache,
     char *v5_principal = NULL;
     ccs_credentials_list_t credentials = NULL;
     
-    if (!io_ccache) { err = cci_check_error (ccErrBadParam); }
+    if (!io_ccache          ) { err = cci_check_error (ccErrBadParam); }
+    if (!io_cache_collection) { err = cci_check_error (ccErrBadParam); }
+    if (!in_principal       ) { err = cci_check_error (ccErrBadParam); }
     
     if (!err) {
         io_ccache->creds_version = in_creds_version;