diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-08-16 16:05:37 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-08-16 16:05:37 +0000 |
commit | b4f6f4be85d32b9c03361c38376e36f08100e3e8 (patch) | |
tree | f785fc1acefcaa7026ee3e6a3d31f5b8ec5bdf2f /nis/nss_nis/nis-netgrp.c | |
parent | 908c9e87c3b639c8d1660a5c1a22c962634c6332 (diff) | |
download | glibc-b4f6f4be85d32b9c03361c38376e36f08100e3e8.tar.gz |
[BZ #1188]
2005-08-10 Sergio Gelato <Sergio.Gelato@astro.su.se>
[BZ #1188]
* nis/nss_nis/nis-netgrp.c (_nss_nis_setnetgrent): Change assert check
from (len > 0) to (len >= 0).
2005-08-16 Ulrich Drepper <drepper@redhat.com>
* nis/nis_xdr.c (_xdr_nis_result): Fix type of res variable.
Reported by Thomas Schwinge.
2005-08-15 Jakub Jelinek <jakub@redhat.com>
* nis/nis_subr.c (nis_leaf_of_r): Handle buflen == 0 correctly.
2005-08-16 Ulrich Drepper <drepper@redhat.com>
* nss/getent.c (more_help): Use open_memstream instead of handling
memory allocation ourselves.
2005-08-16 Jay Fenlason <fenlason@redhat.com>
* nss/getent.c (parse_options): change the -s option to support
{database}:{search} to override /etc/resolv.conf for only the
specified database.
Diffstat (limited to 'nis/nss_nis/nis-netgrp.c')
-rw-r--r-- | nis/nss_nis/nis-netgrp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nis/nss_nis/nis-netgrp.c b/nis/nss_nis/nis-netgrp.c index d339dd5097..7bd6527f2d 100644 --- a/nis/nss_nis/nis-netgrp.c +++ b/nis/nss_nis/nis-netgrp.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1996,1997,1999,2000,2002,2003,2004 +/* Copyright (C) 1996,1997,1999,2000,2002,2003,2004,2005 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@suse.de>, 1996. @@ -75,7 +75,7 @@ _nss_nis_setnetgrent (const char *group, struct __netgrent *netgrp) which is one byte larger than the value in LEN specifies and the last byte is filled with NUL. So we can simply use that buffer. */ - assert (len > 0); + assert (len >= 0); assert (malloc_usable_size (netgrp->data) >= len + 1); assert (netgrp->data[len] == '\0'); |