From 4c39297d1df1a8143fb95353cd0af8b3d91c1380 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 8 Jun 2009 23:31:25 +0200 Subject: nsswitch: try to fix segfault in nss_winbind on NetBSD found by torture test. Guenther --- nsswitch/winbind_nss_netbsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nsswitch/winbind_nss_netbsd.c b/nsswitch/winbind_nss_netbsd.c index 9b8e0a2265..63c068e0e7 100644 --- a/nsswitch/winbind_nss_netbsd.c +++ b/nsswitch/winbind_nss_netbsd.c @@ -124,7 +124,7 @@ netbsdwinbind_getgrent_r(void *nsrv, void *nscb, va_list ap) *result = NULL; rerrno = 0; - rv = _nss_winbind_getgrent_r(grp, buffer, buflen, rerrno); + rv = _nss_winbind_getgrent_r(grp, buffer, buflen, &rerrno); if (rv == NS_SUCCESS) *result = grp; else @@ -312,7 +312,7 @@ netbsdwinbind_getpwent_r(void *nsrv, void *nscb, va_list ap) *result = NULL; rerrno = 0; - rv = _nss_winbind_getpwent_r(pw, buffer, buflen, rerrno); + rv = _nss_winbind_getpwent_r(pw, buffer, buflen, &rerrno); if (rv == NS_SUCCESS) *result = pw; else -- cgit