r11280: BUG 3201: make sure request structure is cleared prior to sending the request...
authorGerald Carter <jerry@samba.org>
Mon, 24 Oct 2005 16:55:26 +0000 (16:55 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:10 +0000 (11:05 -0500)
source/nsswitch/wbinfo.c

index 60f1d6b7221d21f1722938a9554bd313c1c7b75a..6436346668a3be0d0a4ee2ada33e0d87653444ff 100644 (file)
@@ -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 */