summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/bgpd/session.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c
index ce3e9851350..c8899b7d370 100644
--- a/usr.sbin/bgpd/session.c
+++ b/usr.sbin/bgpd/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.268 2007/01/26 17:40:49 claudio Exp $ */
+/* $OpenBSD: session.c,v 1.269 2007/02/22 08:26:45 henning Exp $ */
/*
* Copyright (c) 2003, 2004, 2005 Henning Brauer <henning@openbsd.org>
@@ -150,8 +150,8 @@ setup_listeners(u_int *la_cnt)
}
/* set ttl to 255 so that ttl-security works */
- if (setsockopt(la->fd, IPPROTO_IP, IP_TTL, &ttl,
- sizeof(ttl)) == -1) {
+ if (la->sa.ss_family == AF_INET && setsockopt(la->fd,
+ IPPROTO_IP, IP_TTL, &ttl, sizeof(ttl)) == -1) {
log_warn("setup_listeners setsockopt TTL");
continue;
}