Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/usr.sbin/mountd Pull up rev. 1.71, requested by Jason R...
details: https://anonhg.NetBSD.org/src/rev/5804a9eff9cb
branches: netbsd-1-5
changeset: 488205:5804a9eff9cb
user: enami <enami%NetBSD.org@localhost>
date: Wed Jun 21 07:07:25 2000 +0000
description:
Pull up rev. 1.71, requested by Jason R. Thorpe:
Avoid null pointer dereference; the `addrp' is NULL if a mount point
is default exported.
diffstat:
usr.sbin/mountd/mountd.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 7bf9e1cffe76 -r 5804a9eff9cb usr.sbin/mountd/mountd.c
--- a/usr.sbin/mountd/mountd.c Wed Jun 21 06:45:34 2000 +0000
+++ b/usr.sbin/mountd/mountd.c Wed Jun 21 07:07:25 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mountd.c,v 1.70 2000/06/19 23:44:16 fvdl Exp $ */
+/* $NetBSD: mountd.c,v 1.70.2.1 2000/06/21 07:07:25 enami Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -51,7 +51,7 @@
#if 0
static char sccsid[] = "@(#)mountd.c 8.15 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: mountd.c,v 1.70 2000/06/19 23:44:16 fvdl Exp $");
+__RCSID("$NetBSD: mountd.c,v 1.70.2.1 2000/06/21 07:07:25 enami Exp $");
#endif
#endif /* not lint */
@@ -1975,7 +1975,8 @@
while (!done) {
switch (grp->gr_type) {
case GT_HOST:
- if (addrp->sa_family == AF_INET6 && have_v6 == 0)
+ if (addrp != NULL && addrp->sa_family == AF_INET6 &&
+ have_v6 == 0)
goto skip;
args.ua.export.ex_addr = addrp;
args.ua.export.ex_addrlen = addrlen;
Home |
Main Index |
Thread Index |
Old Index