git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
46b5cce
)
nsswitch: try to fix segfault in nss_winbind on NetBSD found by torture test.
author
Günther Deschner
<gd@samba.org>
Mon, 8 Jun 2009 21:31:25 +0000
(23:31 +0200)
committer
Günther Deschner
<gd@samba.org>
Mon, 8 Jun 2009 21:32:34 +0000
(23:32 +0200)
Guenther
nsswitch/winbind_nss_netbsd.c
patch
|
blob
|
history
diff --git
a/nsswitch/winbind_nss_netbsd.c
b/nsswitch/winbind_nss_netbsd.c
index 9b8e0a2265f48d7c02182cc89287ec77353085c9..63c068e0e75a9872ff313bd49e0301831925735f 100644
(file)
--- 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