diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-28 18:19:33 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-28 18:19:33 +0000 |
commit | 3b45540c2325f5da3d40b2b83b514a6a722a0c91 (patch) | |
tree | fafd5b7e296272e08de8ad130caae1d1506bbe62 /usr.sbin | |
parent | e924b467eb48db89cacb1bb224e74373e9871cd2 (diff) |
improve logging
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/session.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 <henning@openbsd.org> @@ -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); |