From: Gerald Carter Date: Wed, 21 Mar 2007 17:43:49 +0000 (+0000) Subject: r21913: fix one bug in build 717: correctly check the return from sid_peek_check_rid... X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~889 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c63bc300376e5be10585366013449a359b0778c1;p=thirdparty%2Fsamba.git r21913: fix one bug in build 717: correctly check the return from sid_peek_check_rid() when trying to find a matching domain --- diff --git a/source/nsswitch/winbindd_util.c b/source/nsswitch/winbindd_util.c index b0529be4fbb..b649dc4768a 100644 --- a/source/nsswitch/winbindd_util.c +++ b/source/nsswitch/winbindd_util.c @@ -608,7 +608,7 @@ struct winbindd_domain *find_domain_from_sid_noinit(const DOM_SID *sid) * to make sure that the SIDs we send to the backends are * as specific as possible. */ - if (sid_peek_check_rid(&domain->sid, sid, &discard) == 0) { + if (sid_peek_check_rid(&domain->sid, sid, &discard)) { return domain; } }