summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/message.c
diff options
context:
space:
mode:
authorMichele Marchetto <michele@cvs.openbsd.org>2007-03-31 09:49:21 +0000
committerMichele Marchetto <michele@cvs.openbsd.org>2007-03-31 09:49:21 +0000
commit5a42afe80d6338a1bc0642cd5555825421d37b66 (patch)
treea0807a61e1203dbb80398f883d752f5ac8192cab /usr.sbin/ripd/message.c
parent1acc7ee3a83439aed3fb78e0b41a86d07f101c3e (diff)
Some code cleanups. Added one lint command, removed one unused function and
some other cosmetics.
Diffstat (limited to 'usr.sbin/ripd/message.c')
-rw-r--r--usr.sbin/ripd/message.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/ripd/message.c b/usr.sbin/ripd/message.c
index 469ae34cee7..acc50e2fd3a 100644
--- a/usr.sbin/ripd/message.c
+++ b/usr.sbin/ripd/message.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: message.c,v 1.6 2006/11/11 15:55:52 michele Exp $ */
+/* $OpenBSD: message.c,v 1.7 2007/03/31 09:49:20 michele Exp $ */
/*
* Copyright (c) 2006 Michele Marchetto <mydecay@openbeer.it>
@@ -37,6 +37,7 @@ extern struct ripd_conf *oeconf;
void delete_entry(struct rip_route *);
/* timers */
+/* ARGSUSED */
void
report_timer(int fd, short event, void *arg)
{
@@ -259,8 +260,10 @@ send_response(struct packet_head *r_list, struct iface *i, struct nbr *nbr)
nentries = 0;
if (iface->auth_type != AUTH_NONE) {
- if (auth_gen(buf, iface) < 0)
+ if (auth_gen(buf, iface) == -1) {
+ buf_free(buf);
return (-1);
+ }
nentries++;
}