From 3b45540c2325f5da3d40b2b83b514a6a722a0c91 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 28 Jan 2004 18:19:33 +0000 Subject: improve logging --- usr.sbin/bgpd/session.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'usr.sbin/bgpd/session.c') diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 5bc2b072061..8ecf10aed3c 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.97 2004/01/28 17:57:08 henning Exp $ */ +/* $OpenBSD: session.c,v 1.98 2004/01/28 18:19:32 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -385,8 +385,10 @@ bgp_fsm(struct peer *peer, enum session_events event) msgbuf_init(&peer->wbuf); /* init pfkey */ - if (pfkey_auth_establish(peer) == -1) + if (pfkey_auth_establish(peer) == -1) { + log_warnx("pfkey_auth setup failed"); return; + } if (peer->conf.passive) { change_state(peer, STATE_ACTIVE, event); -- cgit v1.2.3