Source-Changes-HG archive

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

[src/trunk]: src/sys/netiso fix null pointer deref. from ho@openbsd



details:   https://anonhg.NetBSD.org/src/rev/395ca3ef5a2f
branches:  trunk
changeset: 534583:395ca3ef5a2f
user:      itojun <itojun%NetBSD.org@localhost>
date:      Mon Jul 29 22:54:38 2002 +0000

description:
fix null pointer deref.  from ho@openbsd

diffstat:

 sys/netiso/if_eon.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 6e2901766fc8 -r 395ca3ef5a2f sys/netiso/if_eon.c
--- a/sys/netiso/if_eon.c       Mon Jul 29 22:05:37 2002 +0000
+++ b/sys/netiso/if_eon.c       Mon Jul 29 22:54:38 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_eon.c,v 1.36 2001/11/15 09:48:28 lukem Exp $        */
+/*     $NetBSD: if_eon.c,v 1.37 2002/07/29 22:54:38 itojun Exp $       */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_eon.c,v 1.36 2001/11/15 09:48:28 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_eon.c,v 1.37 2002/07/29 22:54:38 itojun Exp $");
 
 #include "opt_eon.h"
 
@@ -317,7 +317,7 @@
                el->el_rt = rt;
                break;
        }
-       if (info || (gate = info->rti_info[RTAX_GATEWAY]))      /*XXX*/
+       if (info && (gate = info->rti_info[RTAX_GATEWAY]))      /*XXX*/
                switch (gate->sa_family) {
                case AF_LINK:
 #define SDL(x) ((struct sockaddr_dl *)x)



Home | Main Index | Thread Index | Old Index