winbind_nss_netbsd: use WBFLAG_FROM_NSS
authorBjörn Jacke <bj@sernet.de>
Thu, 20 Dec 2018 23:50:38 +0000 (00:50 +0100)
committerBjoern Jacke <bj@sernet.de>
Sat, 22 Dec 2018 02:11:14 +0000 (03:11 +0100)
Signed-off-by: Bjoern Jacke <bj@sernet.de>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
nsswitch/winbind_nss_netbsd.c

index 4edf64c..9455263 100644 (file)
@@ -180,13 +180,15 @@ netbsdwinbind_getgroupmembership(void *nsrv, void *nscb, va_list ap)
        int              maxgrp = va_arg(ap, int);
        int             *groupc = va_arg(ap, int *);
 
-       struct winbindd_request request;
-       struct winbindd_response response;
+       struct winbindd_request request = {
+               .wb_flags = WBFLAG_FROM_NSS,
+       };
+       struct winbindd_response response = {
+               .length = 0,
+       }
        gid_t   *wblistv;
        int     wblistc, i, isdup, dupc;
 
-       ZERO_STRUCT(request);
-       ZERO_STRUCT(response);
        strncpy(request.data.username, uname,
                                sizeof(request.data.username) - 1);
        i = winbindd_request_response(NULL, WINBINDD_GETGROUPS,