diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-08 18:50:07 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-08 18:50:07 -0800 |
commit | 7a1de5b44e84a7474e78518c6ba33b3fedc42b5f (patch) | |
tree | b27891de35d06dc48adaa7d353ab3defe385a081 /source/nmbd | |
parent | c21bc756e36581d3adc770bc2b773b5cf9bf11d0 (diff) | |
download | samba-7a1de5b44e84a7474e78518c6ba33b3fedc42b5f.tar.gz |
Remove more pstring/fstrings.
Jeremy.
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd_processlogon.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/source/nmbd/nmbd_processlogon.c b/source/nmbd/nmbd_processlogon.c index 50a614a3908..8cbb87355a0 100644 --- a/source/nmbd/nmbd_processlogon.c +++ b/source/nmbd/nmbd_processlogon.c @@ -395,7 +395,7 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", struct GUID domain_guid; UUID_FLAT flat_guid; char *domain; - pstring hostname; + char *hostname; char *component, *dc, *q1; char *q_orig = q; int str_offset; @@ -406,7 +406,12 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", ("get_mydnsdomname failed.\n")); return; } - get_myname(hostname); + hostname = get_myname(talloc_tos()); + if (!hostname) { + DEBUG(2, + ("get_myname failed.\n")); + return; + } if (sizeof(outbuf) - PTR_DIFF(q, outbuf) < 8) { return; |