diff options
author | Renato Westphal <renato@cvs.openbsd.org> | 2015-10-04 23:00:11 +0000 |
---|---|---|
committer | Renato Westphal <renato@cvs.openbsd.org> | 2015-10-04 23:00:11 +0000 |
commit | 020366e272c9ffddc9168953d64a9f0184862d78 (patch) | |
tree | 76209b2cad7d35a55b4086e60a4fcfbb7d780c69 /usr.sbin/eigrpd/neighbor.c | |
parent | 7b0f05c4daaae79b9d3d662bb18ef3d2b4468caa (diff) |
Fix warnings and add safeguards to protect against corrupted data.
Diffstat (limited to 'usr.sbin/eigrpd/neighbor.c')
-rw-r--r-- | usr.sbin/eigrpd/neighbor.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/eigrpd/neighbor.c b/usr.sbin/eigrpd/neighbor.c index bc61672105f..d0f8bfc7955 100644 --- a/usr.sbin/eigrpd/neighbor.c +++ b/usr.sbin/eigrpd/neighbor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: neighbor.c,v 1.1 2015/10/02 04:26:47 renato Exp $ */ +/* $OpenBSD: neighbor.c,v 1.2 2015/10/04 23:00:10 renato Exp $ */ /* * Copyright (c) 2015 Renato Westphal <renato@openbsd.org> @@ -68,8 +68,7 @@ nbr_compare(struct nbr *a, struct nbr *b) return (-1); break; default: - log_debug("%s: unexpected address-family", __func__); - break; + fatalx("nbr_compare: unknown af"); } return (0); |