diff options
author | 2002-07-06 00:10:36 +0000 | |
---|---|---|
committer | 2002-07-06 00:10:36 +0000 | |
commit | bd6256a8b18ff4daa5693e4201280e8fc2dd2136 (patch) | |
tree | ac12bb777a3e8659f38c99a55fe7f4b49159f57f /lib/libc | |
parent | Free crp_opaque only after we've determined we're not going to (diff) | |
download | wireguard-openbsd-bd6256a8b18ff4daa5693e4201280e8fc2dd2136.tar.xz wireguard-openbsd-bd6256a8b18ff4daa5693e4201280e8fc2dd2136.zip |
cope better if realloc fails; better fix than cloder@acm.org
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/gen/getpwent.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/getpwent.c b/lib/libc/gen/getpwent.c index f82e8b5f689..036a35c7f4b 100644 --- a/lib/libc/gen/getpwent.c +++ b/lib/libc/gen/getpwent.c @@ -33,7 +33,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: getpwent.c,v 1.25 2002/05/24 21:22:37 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: getpwent.c,v 1.26 2002/07/06 00:10:36 deraadt Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/param.h> @@ -1002,6 +1002,7 @@ __hashpw(key) if (line) free(line); line = NULL; + max = 0; return 0; } line = nline; |