summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-06-08 23:31:25 +0200
committerGünther Deschner <gd@samba.org>2009-06-08 23:32:34 +0200
commit4c39297d1df1a8143fb95353cd0af8b3d91c1380 (patch)
tree9ca442df357726db24f4b962bfa97c0bdaba20f7
parent46b5cce1e9eb932147ad4b346841df8c2d70c0d2 (diff)
downloadsamba-4c39297d1df1a8143fb95353cd0af8b3d91c1380.tar.gz
samba-4c39297d1df1a8143fb95353cd0af8b3d91c1380.tar.bz2
samba-4c39297d1df1a8143fb95353cd0af8b3d91c1380.zip
nsswitch: try to fix segfault in nss_winbind on NetBSD found by torture test.
Guenther
-rw-r--r--nsswitch/winbind_nss_netbsd.c4
1 files 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