summaryrefslogtreecommitdiff
path: root/source3/pipeutil.c
diff options
context:
space:
mode:
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-" */