From: Günther Deschner Date: Mon, 8 Jun 2009 21:31:25 +0000 (+0200) Subject: nsswitch: try to fix segfault in nss_winbind on NetBSD found by torture test. X-Git-Tag: tdb-1.1.5~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c39297d1df1a8143fb95353cd0af8b3d91c1380;p=thirdparty%2Fsamba.git nsswitch: try to fix segfault in nss_winbind on NetBSD found by torture test. Guenther --- diff --git a/nsswitch/winbind_nss_netbsd.c b/nsswitch/winbind_nss_netbsd.c index 9b8e0a2265f..63c068e0e75 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