Source-Changes-HG archive

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

[src/trunk]: src/sys/net rt_setkey: remove invalid assert, sockaddr_dup() may...



details:   https://anonhg.NetBSD.org/src/rev/db5c3863715a
branches:  trunk
changeset: 777441:db5c3863715a
user:      rmind <rmind%NetBSD.org@localhost>
date:      Sat Feb 18 23:47:48 2012 +0000

description:
rt_setkey: remove invalid assert, sockaddr_dup() may fail if no memory.

diffstat:

 sys/net/route.h |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r 8881e3a08091 -r db5c3863715a sys/net/route.h
--- a/sys/net/route.h   Sat Feb 18 19:20:43 2012 +0000
+++ b/sys/net/route.h   Sat Feb 18 23:47:48 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.h,v 1.80 2011/11/11 15:09:32 gdt Exp $   */
+/*     $NetBSD: route.h,v 1.81 2012/02/18 23:47:48 rmind Exp $ */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -426,7 +426,6 @@
                sockaddr_free(rt->_rt_key);
        rt->_rt_key = sockaddr_dup(key, flags);
 out:
-       KASSERT(rt->_rt_key != NULL);
        rt->rt_nodes->rn_key = (const char *)rt->_rt_key;
        return rt->_rt_key;
 }



Home | Main Index | Thread Index | Old Index