From 844290e9a02c4eb6013002c8d9e26356530b0f40 Mon Sep 17 00:00:00 2001 From: Gerald Carter Date: Mon, 24 Oct 2005 16:55:26 +0000 Subject: r11280: BUG 3201: make sure request structure is cleared prior to sending the request to winbindd (prevents the WB_RECURSE flags from accidentially getting set (This used to be commit 8c63d6d8a7f50d9a101117338242a9c8b243b43f) --- source3/nsswitch/wbinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c index 60f1d6b722..6436346668 100644 --- a/source3/nsswitch/wbinfo.c +++ b/source3/nsswitch/wbinfo.c @@ -117,6 +117,7 @@ static BOOL wbinfo_get_usergroups(char *user) NSS_STATUS result; int i; + ZERO_STRUCT(request); ZERO_STRUCT(response); /* Send request */ @@ -146,6 +147,7 @@ static BOOL wbinfo_get_usersids(char *user_sid) int i; const char *s; + ZERO_STRUCT(request); ZERO_STRUCT(response); /* Send request */ @@ -173,6 +175,7 @@ static BOOL wbinfo_get_userdomgroups(const char *user_sid) struct winbindd_response response; NSS_STATUS result; + ZERO_STRUCT(request); ZERO_STRUCT(response); /* Send request */ -- cgit