diff options
author | pjd <pjd@FreeBSD.org> | 2010-10-17 15:47:27 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2010-10-17 15:47:27 +0000 |
commit | 4212acad625f4cbd46de4bbbce7d824fe4e2db50 (patch) | |
tree | dce3ead3d8ae322ae7c26a2061aa56723e72e9ce /sbin | |
parent | c8ed8cb6af826805c05f3c01989c38878c5c158d (diff) | |
download | FreeBSD-src-4212acad625f4cbd46de4bbbce7d824fe4e2db50.zip FreeBSD-src-4212acad625f4cbd46de4bbbce7d824fe4e2db50.tar.gz |
Log correct connection when canceling half-open connection.
Submitted by: Mikolaj Golub <to.my.trociny@gmail.com>
MFC after: 3 days
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/hastd/hastd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/hastd/hastd.c b/sbin/hastd/hastd.c index 2f1a5fd..a025d6b 100644 --- a/sbin/hastd/hastd.c +++ b/sbin/hastd/hastd.c @@ -527,7 +527,8 @@ listen_accept(void) } else if (res->hr_remotein != NULL) { char oaddr[256]; - proto_remote_address(conn, oaddr, sizeof(oaddr)); + proto_remote_address(res->hr_remotein, oaddr, + sizeof(oaddr)); pjdlog_debug(1, "Canceling half-open connection from %s on connection from %s.", oaddr, raddr); |