summaryrefslogtreecommitdiff
path: root/source3/pipeutil.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-17 13:43:01 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-17 13:43:01 +0000
commitf3c37f925ee06bbc76a89035b28dae0cf8c38088 (patch)
tree9536d7dd562090b0b58431cf5d4096ebca687d48 /source3/pipeutil.c
parentf657f37b3a346dfe7e31bd2cb3e3c32551bceadf (diff)
downloadsamba-f3c37f925ee06bbc76a89035b28dae0cf8c38088.tar.gz
samba-f3c37f925ee06bbc76a89035b28dae0cf8c38088.tar.bz2
samba-f3c37f925ee06bbc76a89035b28dae0cf8c38088.zip
smbparse.c smb.h :
uni_max_len and uni_str_len are the other way round, in UNIHDR. util.c : increased the show_msg() data size from 256 bytes to 512 bytes: the LSA SAM Logon response can be about 500 bytes long. pipenetlog.c : forgot to set the authoritative field to 1. (This used to be commit 71c6678cd7ffe30a5da27766cf99147e1921feae)
Diffstat (limited to 'source3/pipeutil.c')
-rw-r--r--source3/pipeutil.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/pipeutil.c b/source3/pipeutil.c
index f55a8d2181..de58d56a98 100644
--- a/source3/pipeutil.c
+++ b/source3/pipeutil.c
@@ -106,6 +106,16 @@ void make_dom_sid(DOM_SID *sid, char *domsid)
int identauth;
char *p;
+ if (sid == NULL) return;
+
+ if (domsid == NULL)
+ {
+ DEBUG(4,("netlogon domain SID: none\n"));
+ sid->sid_no = 0;
+ sid->num_auths = 0;
+ return;
+ }
+
DEBUG(4,("netlogon domain SID: %s\n", domsid));
/* assume, but should check, that domsid starts "S-" */