new interface to krb5_cc_default
authorJohn Kohl <jtkohl@mit.edu>
Tue, 29 May 1990 15:18:45 +0000 (15:18 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 29 May 1990 15:18:45 +0000 (15:18 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@957 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/sample/sclient/sclient.c

index a11eaf385aea3c01cd6e66e04bae8e605a8f2897..454c04ac49b473f07d97ab08e10493637f03c421 100644 (file)
@@ -167,7 +167,10 @@ char *argv[];
        exit(1);
     }
 
-    ccdef = krb5_cc_default();
+    if (retval = krb5_cc_default(&ccdef)) {
+       com_err(argv[0], retval, "while getting default ccache");
+       exit(1);
+    }
 
     if (retval = krb5_mk_req(server, 0, &send_cksum, ccdef, &send_data)) {
        com_err(argv[0], retval, "while preparing AP_REQ");