From fcda61bb41be5e638b9124cb5570bbb2fa214a13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Jacke?= Date: Fri, 21 Dec 2018 00:50:38 +0100 Subject: winbind_nss_netbsd: use WBFLAG_FROM_NSS Signed-off-by: Bjoern Jacke Reviewed-by: Stefan Metzmacher --- nsswitch/winbind_nss_netbsd.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'nsswitch') diff --git a/nsswitch/winbind_nss_netbsd.c b/nsswitch/winbind_nss_netbsd.c index 4edf64c2c11..94552639b7b 100644 --- a/nsswitch/winbind_nss_netbsd.c +++ b/nsswitch/winbind_nss_netbsd.c @@ -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, -- cgit v1.2.1