diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-16 04:47:20 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-04-16 04:47:20 +0000 |
commit | 374e97c20bf1b025845062215ef2ff435ede7463 (patch) | |
tree | 16b18892e501ca6238d542cde1e97294b54b2005 /usr.sbin/bgpd/session.c | |
parent | 60fff3a941a1653c5e203b115b3d6abbdef961b6 (diff) |
make log_conn_attempt work in an address family independent matter
Diffstat (limited to 'usr.sbin/bgpd/session.c')
-rw-r--r-- | usr.sbin/bgpd/session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/session.c b/usr.sbin/bgpd/session.c index 0f1d125caa7..af4bceaab25 100644 --- a/usr.sbin/bgpd/session.c +++ b/usr.sbin/bgpd/session.c @@ -1,4 +1,4 @@ -/* $OpenBSD: session.c,v 1.140 2004/04/13 22:53:29 henning Exp $ */ +/* $OpenBSD: session.c,v 1.141 2004/04/16 04:47:19 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -800,7 +800,7 @@ session_accept(int listenfd) session_socket_blockmode(connfd, BM_NONBLOCK); bgp_fsm(p, EVNT_CON_OPEN); } else { - log_conn_attempt(p, cliaddr.sin_addr); + log_conn_attempt(p, (struct sockaddr *)&cliaddr); shutdown(connfd, SHUT_RDWR); close(connfd); } |