summaryrefslogtreecommitdiffstats
path: root/usr.sbin/eigrpd/reply.c
diff options
context:
space:
mode:
authorrenato <renato@openbsd.org>2015-10-04 23:00:10 +0000
committerrenato <renato@openbsd.org>2015-10-04 23:00:10 +0000
commit3c8071b056e515acf3107044c865ca25cdbe8965 (patch)
treee0279dac8d0c570eb9aad25eca0b483e49767462 /usr.sbin/eigrpd/reply.c
parentAdd option to configure or disable the DUAL active timeout. (diff)
downloadwireguard-openbsd-3c8071b056e515acf3107044c865ca25cdbe8965.tar.xz
wireguard-openbsd-3c8071b056e515acf3107044c865ca25cdbe8965.zip
Fix warnings and add safeguards to protect against corrupted data.
Diffstat (limited to 'usr.sbin/eigrpd/reply.c')
-rw-r--r--usr.sbin/eigrpd/reply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/eigrpd/reply.c b/usr.sbin/eigrpd/reply.c
index 98dab8d54cf..bb0e57d6b17 100644
--- a/usr.sbin/eigrpd/reply.c
+++ b/usr.sbin/eigrpd/reply.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: reply.c,v 1.1 2015/10/02 04:26:47 renato Exp $ */
+/* $OpenBSD: reply.c,v 1.2 2015/10/04 23:00:10 renato Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -65,7 +65,7 @@ send_reply(struct nbr *nbr, struct rinfo_head *rinfo_list, int siareply)
size = sizeof(struct ip6_hdr);
break;
default:
- break;
+ fatalx("send_reply: unknown af");
}
size += sizeof(struct eigrp_hdr);