From 612a333d658990aeb4188ee984a53b2e6bc65780 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 18 May 2010 15:25:53 +0200 Subject: s3:winbind:idmap_tdb2_set_mapping: untangle assignment from check --- source3/winbindd/idmap_tdb2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/winbindd/idmap_tdb2.c') 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; -- cgit