From 8efffd9e11c930b21529122c110490b4aedfe3f9 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 26 Mar 2010 15:41:05 +0000 Subject: pt_add() is not allowed to fail, caller expects this behaviour. --- usr.sbin/bgpd/rde_prefix.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.sbin') 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 @@ -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); } -- cgit v1.2.3