diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-08 17:25:45 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-08 17:25:45 -0800 |
commit | 2a0173743d2cf615d52278f3dd87cc804abe2d16 (patch) | |
tree | c872a57aebebf87658b18703b8abb1ce54c082ec /source/nmbd | |
parent | d9335456d23271a4b15b97d24f1b263700a3b9df (diff) | |
download | samba-2a0173743d2cf615d52278f3dd87cc804abe2d16.tar.gz samba-2a0173743d2cf615d52278f3dd87cc804abe2d16.tar.xz samba-2a0173743d2cf615d52278f3dd87cc804abe2d16.zip |
Remove more fstring/pstring bad useage. Go talloc !
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 feb7941cc33..50a614a3908 100644 --- a/source/nmbd/nmbd_processlogon.c +++ b/source/nmbd/nmbd_processlogon.c @@ -394,13 +394,18 @@ reporting %s domain %s 0x%x ntversion=%x lm_nt token=%x lm_20 token=%x\n", else { struct GUID domain_guid; UUID_FLAT flat_guid; - pstring domain; + char *domain; pstring hostname; char *component, *dc, *q1; char *q_orig = q; int str_offset; - get_mydnsdomname(domain); + domain = get_mydnsdomname(talloc_tos()); + if (!domain) { + DEBUG(2, + ("get_mydnsdomname failed.\n")); + return; + } get_myname(hostname); if (sizeof(outbuf) - PTR_DIFF(q, outbuf) < 8) { |