diff options
author | Michael Adam <obnox@samba.org> | 2010-02-19 00:33:45 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2010-02-19 00:37:41 +0100 |
commit | 1a42b020fd8fdd96fa7433f3bb7589167040719a (patch) | |
tree | 5bd1099d4bebc4348e017f1559e18192c3752544 /lib/nss_wrapper | |
parent | 11a87cd31eedaf4e43864bf51ac1f53bca53e327 (diff) | |
download | samba-1a42b020fd8fdd96fa7433f3bb7589167040719a.tar.gz samba-1a42b020fd8fdd96fa7433f3bb7589167040719a.tar.bz2 samba-1a42b020fd8fdd96fa7433f3bb7589167040719a.zip |
nss_wrapper: fix segfault in print_group() in the testsuite
Running
'TESTS=posix_s3 POSIX_SUBTESTS="RPC-SAMR-LARGE-DC LOCAL-NSS-WRAPPER" make test'
from s3 made smbtorture4 crash on my box.
Michael
Diffstat (limited to 'lib/nss_wrapper')
-rw-r--r-- | lib/nss_wrapper/testsuite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/nss_wrapper/testsuite.c b/lib/nss_wrapper/testsuite.c index d6b4839318..da1a2675a2 100644 --- a/lib/nss_wrapper/testsuite.c +++ b/lib/nss_wrapper/testsuite.c @@ -175,7 +175,7 @@ static void print_group(struct group *grp) grp->gr_passwd, (unsigned long)grp->gr_gid); - if (!grp->gr_mem[0]) { + if ((grp->gr_mem == NULL) || !grp->gr_mem[0]) { printf("\n"); return; } |