diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2015-10-21 03:48:10 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2015-10-21 03:48:10 +0000 |
commit | 7782225b2926834dc635e6f72ac2a42468bc922d (patch) | |
tree | f4ff4dab0c4268f03ee006a7ddf8ab38632875bd /usr.sbin/eigrpd/rtp.c | |
parent | 0df301377473d563dc58ba246dde86151b77c516 (diff) |
Minor fixes and code cleanup.
Diffstat (limited to 'usr.sbin/eigrpd/rtp.c')
-rw-r--r-- | usr.sbin/eigrpd/rtp.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.sbin/eigrpd/rtp.c b/usr.sbin/eigrpd/rtp.c index a11cbaf20a5..5a5f3bdc139 100644 --- a/usr.sbin/eigrpd/rtp.c +++ b/usr.sbin/eigrpd/rtp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtp.c,v 1.2 2015/10/05 01:59:33 renato Exp $ */ +/* $OpenBSD: rtp.c,v 1.3 2015/10/21 03:48:09 renato Exp $ */ /* * Copyright (c) 2015 Renato Westphal <renato@openbsd.org> @@ -228,16 +228,15 @@ rtp_send_ack(struct nbr *nbr) fatal("rtp_send_ack"); /* EIGRP header */ - if (gen_eigrp_hdr(buf, EIGRP_OPC_HELLO, 0, 0, eigrp->as)) - goto fail; + if (gen_eigrp_hdr(buf, EIGRP_OPC_HELLO, 0, 0, eigrp->as)) { + log_warnx("%s: failed to send message", __func__); + ibuf_free(buf); + return; + } /* send unreliably */ send_packet(nbr->ei, nbr, 0, buf); ibuf_free(buf); - return; -fail: - log_warnx("%s: failed to send message", __func__); - ibuf_free(buf); } /* timers */ |