(fcc_gen_new): do mkstemp correctly

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8700 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2000-07-19 01:24:38 +00:00
parent b8de1a4edd
commit 8ea704a5f9

View File

@@ -174,7 +174,7 @@ fcc_gen_new(krb5_context context, krb5_ccache *id)
f = malloc(sizeof(*f));
if(f == NULL)
return KRB5_CC_NOMEM;
file = strdup (KRB5_DEFAULT_CCFILE_ROOT);
asprintf (&file, "%sXXXXXX", KRB5_DEFAULT_CCFILE_ROOT);
if(file == NULL) {
free(f);
return KRB5_CC_NOMEM;