diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-03-26 15:41:05 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2010-03-26 15:41:05 +0000 |
commit | 8efffd9e11c930b21529122c110490b4aedfe3f9 (patch) | |
tree | 2540d15b66414260948c8d0a69308c592de3cc36 /usr.sbin/bgpd | |
parent | bae575d3e87dc4185267b4e660a35ec9c3750abc (diff) |
pt_add() is not allowed to fail, caller expects this behaviour.
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r-- | usr.sbin/bgpd/rde_prefix.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.sbin/bgpd/rde_prefix.c b/usr.sbin/bgpd/rde_prefix.c index ee6a5522107..f9a37f8e087 100644 --- a/usr.sbin/bgpd/rde_prefix.c +++ b/usr.sbin/bgpd/rde_prefix.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_prefix.c,v 1.31 2010/01/13 06:02:37 claudio Exp $ */ +/* $OpenBSD: rde_prefix.c,v 1.32 2010/03/26 15:41:04 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> @@ -157,10 +157,8 @@ pt_add(struct bgpd_addr *prefix, int prefixlen) p = pt_fill(prefix, prefixlen); p = pt_alloc(p); - if (RB_INSERT(pt_tree, &pttable, p) != NULL) { - log_warnx("pt_add: insert failed"); - return (NULL); - } + if (RB_INSERT(pt_tree, &pttable, p) != NULL) + fatalx("pt_add: insert failed"); return (p); } |