Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/tcpdump handle badly formattted access RPC



details:   https://anonhg.NetBSD.org/src/rev/1128073aae24
branches:  trunk
changeset: 509888:1128073aae24
user:      assar <assar%NetBSD.org@localhost>
date:      Tue May 15 05:59:13 2001 +0000

description:
handle badly formattted access RPC
should fix PR bin/12765

diffstat:

 usr.sbin/tcpdump/print-nfs.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 1f9de37f000f -r 1128073aae24 usr.sbin/tcpdump/print-nfs.c
--- a/usr.sbin/tcpdump/print-nfs.c      Tue May 15 04:27:22 2001 +0000
+++ b/usr.sbin/tcpdump/print-nfs.c      Tue May 15 05:59:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: print-nfs.c,v 1.15 2001/01/28 10:05:06 itojun Exp $    */
+/*     $NetBSD: print-nfs.c,v 1.16 2001/05/15 05:59:13 assar Exp $     */
 
 /*
  * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
@@ -27,7 +27,7 @@
 static const char rcsid[] =
     "@(#) Header: print-nfs.c,v 1.65 97/08/17 13:24:22 leres Exp  (LBL)";
 #else
-__RCSID("$NetBSD: print-nfs.c,v 1.15 2001/01/28 10:05:06 itojun Exp $");
+__RCSID("$NetBSD: print-nfs.c,v 1.16 2001/05/15 05:59:13 assar Exp $");
 #endif
 #endif
 
@@ -1496,7 +1496,7 @@
        case NFSPROC_ACCESS:
                printf(" access");
                dp = parserep(rp, length);
-               if (!(dp = parsestatus(dp, &er)))
+               if (!dp || !(dp = parsestatus(dp, &er)))
                        break;
                if (vflag)
                        printf(" attr:");



Home | Main Index | Thread Index | Old Index