summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-05-18 15:25:53 +0200
committerMichael Adam <obnox@samba.org>2010-05-20 09:18:59 +0200
commit612a333d658990aeb4188ee984a53b2e6bc65780 (patch)
tree04d1c76bb04239b7b82e33d27aed4c8b86b83efb /source3/winbindd
parent2c61c93a51a8e8c41da8a54945dc67d6dc416141 (diff)
downloadsamba-612a333d658990aeb4188ee984a53b2e6bc65780.tar.gz
samba-612a333d658990aeb4188ee984a53b2e6bc65780.tar.bz2
samba-612a333d658990aeb4188ee984a53b2e6bc65780.zip
s3:winbind:idmap_tdb2_set_mapping: untangle assignment from check
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/idmap_tdb2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/idmap_tdb2.c b/source3/winbindd/idmap_tdb2.c
index 0925b841ee..f39969d1f8 100644
--- a/source3/winbindd/idmap_tdb2.c
+++ b/source3/winbindd/idmap_tdb2.c
@@ -906,7 +906,8 @@ static NTSTATUS idmap_tdb2_set_mapping(struct idmap_domain *dom, const struct id
goto done;
}
- if (!(ksidstr = sid_string_talloc(ctx, map->sid))) {
+ ksidstr = sid_string_talloc(ctx, map->sid);
+ if (ksidstr == NULL) {
DEBUG(0, ("Out of memory!\n"));
ret = NT_STATUS_NO_MEMORY;
goto done;