Fix Coverity ID 592
commitb120493a2c0c6c321d95546e13e6e1c4d44b40bb
authorVolker Lendecke <vl@samba.org>
Sun, 31 Aug 2008 09:34:01 +0000 (31 11:34 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 1 Sep 2008 15:35:43 +0000 (1 17:35 +0200)
tree1830d9f5458aa1aed0f62fecccc2e54dc0b29ede
parent5310a93b09a9f63b4aea4e864d143cf2ecb62e82
Fix Coverity ID 592

The scanner did not figure out that we always have a primary domain, so it
complained about us potentially passing a NULL pointer down to
set_domain_online_request() where it is dereferenced.

Make the code a bit clearer.
(cherry picked from commit e6e8d108f95ed974f98f3f57adcfbbde4e00fad9)
(cherry picked from commit 70dbc13aaef893b25e3164fdcf187a01ec27b392)
source/winbindd/winbindd_dual.c