instead of manually doing an asprintf with lp_lockdir()
Michael
squash
const char *sitename,
struct sockaddr_storage *pss)
{
- char *dname = talloc_asprintf(NULL, "%s/smb_krb5", lp_lockdir());
+ char *dname = lock_path("smb_krb5");
char *tmpname = NULL;
char *fname = NULL;
char *file_contents = NULL;
goto done;
}
- tmpname = talloc_asprintf(dname, "%s/smb_tmp_krb5.XXXXXX", lp_lockdir());
+ tmpname = lock_path("smb_tmp_krb5.XXXXXX");
if (!tmpname) {
goto done;
}
#endif
done:
+ TALLOC_FREE(tmpname);
TALLOC_FREE(dname);
return result;