(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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user