summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_misc.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-06-20 16:59:48 +0000
committerGerald Carter <jerry@samba.org>2006-06-20 16:59:48 +0000
commit71402ccf50c38ff092e7331c6817bbf975fde412 (patch)
tree49ed8a84c63734b906f1b792225f12fc1dc1d659 /source/nsswitch/winbindd_misc.c
parentaa39f8aeab4ff08fd083cf913576f24104b08fde (diff)
downloadsamba-71402ccf50c38ff092e7331c6817bbf975fde412.tar.gz
samba-71402ccf50c38ff092e7331c6817bbf975fde412.tar.xz
samba-71402ccf50c38ff092e7331c6817bbf975fde412.zip
r16418: Pull in more Klocwork fixes (up to r16415)
Diffstat (limited to 'source/nsswitch/winbindd_misc.c')
-rw-r--r--source/nsswitch/winbindd_misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_misc.c b/source/nsswitch/winbindd_misc.c
index 9413a79abaa..6c6dc5b7651 100644
--- a/source/nsswitch/winbindd_misc.c
+++ b/source/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);