summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2008-08-16 11:12:35 +0200
committerJeremy Allison <jra@samba.org>2008-08-16 10:38:39 -0700
commit165f5c0c0a99d7da598a3c27355abaed1161cc7f (patch)
tree2a9d5e1d56720e1204964ab2c8831fabaf57b9a0 /source3
parentcb9dc23600006f2650e60d0c601d8dc5ef68fdfa (diff)
downloadsamba-165f5c0c0a99d7da598a3c27355abaed1161cc7f.tar.gz
samba-165f5c0c0a99d7da598a3c27355abaed1161cc7f.tar.bz2
samba-165f5c0c0a99d7da598a3c27355abaed1161cc7f.zip
Attempt to fix Coverity ID 596
Jeremy, please check & push if it's ok. (This used to be commit f06070c188d6d2efed3205bbc9c3c290718397b1)
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_passdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_passdb.c b/source3/winbindd/winbindd_passdb.c
index e4cf029225..8387565a74 100644
--- a/source3/winbindd/winbindd_passdb.c
+++ b/source3/winbindd/winbindd_passdb.c
@@ -217,7 +217,7 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain,
(*names)[i] = CONST_DISCARD(char *, nam);
}
- if (domain_name == NULL) {
+ if (*domain_name == NULL) {
*domain_name = CONST_DISCARD(char *, dom);
} else {
char *dname = CONST_DISCARD(char *, dom);