summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_misc.c
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-06-19 19:41:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:18:49 -0500
commitdfa4760eeaecb3666c149d9bcdf6f36c18c6f463 (patch)
treed3086de32be11cfc85905c28ec86fd6aa1131d06 /source3/nsswitch/winbindd_misc.c
parente7fc37cf0f4bd2c0f25865fb07d1bff27b239130 (diff)
downloadsamba-dfa4760eeaecb3666c149d9bcdf6f36c18c6f463.tar.gz
samba-dfa4760eeaecb3666c149d9bcdf6f36c18c6f463.tar.bz2
samba-dfa4760eeaecb3666c149d9bcdf6f36c18c6f463.zip
r16361: Fix Klocwork ID 1731 1770 1771 1775 1796
Volker (This used to be commit 8a5cebc19e4709399976efe9e3ba3bf29249620a)
Diffstat (limited to 'source3/nsswitch/winbindd_misc.c')
-rw-r--r--source3/nsswitch/winbindd_misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index 9413a79aba..6c6dc5b765 100644
--- a/source3/nsswitch/winbindd_misc.c
+++ b/source3/nsswitch/winbindd_misc.c
@@ -158,7 +158,10 @@ enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *
/* This is a bit excessive, but the extra data sooner or later will be
talloc'ed */
- extra_data_len = strlen(extra_data);
+ extra_data_len = 0;
+ if (extra_data != NULL) {
+ extra_data_len = strlen(extra_data);
+ }
if (extra_data_len > 0) {
state->response.extra_data.data = SMB_STRDUP(extra_data);