diff options
author | Jeremy Allison <jra@samba.org> | 2007-12-03 14:11:45 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-03 14:11:45 -0800 |
commit | df141905fa389bc4d86bce33d1a763164e120457 (patch) | |
tree | 10431ee118c61cd5087133e4b74446b4d3e367af /source3 | |
parent | fe1a12b22fd81ac01d30c0f561cacba82532cd0e (diff) | |
download | samba-df141905fa389bc4d86bce33d1a763164e120457.tar.gz samba-df141905fa389bc4d86bce33d1a763164e120457.tar.bz2 samba-df141905fa389bc4d86bce33d1a763164e120457.zip |
Last pstring here.
Jeremy.
(This used to be commit 98d86dcbd898f48748bbfbe1066a7014d25392d1)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd_cm.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/source3/winbindd/winbindd_cm.c b/source3/winbindd/winbindd_cm.c index 7da7a82343..b64937da23 100644 --- a/source3/winbindd/winbindd_cm.c +++ b/source3/winbindd/winbindd_cm.c @@ -208,10 +208,12 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain) close_conns_after_fork(); if (!override_logfile) { - pstring logfile; - pstr_sprintf(logfile, "%s/log.winbindd-dc-connect", dyn_LOGFILEBASE); - lp_set_logfile(logfile); - reopen_logs(); + char *logfile; + if (asprintf(&logfile, "%s/log.winbindd-dc-connect", dyn_LOGFILEBASE) > 0) { + lp_set_logfile(logfile); + SAFE_FREE(logfile); + reopen_logs(); + } } mem_ctx = talloc_init("fork_child_dc_connect"); |