Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Oct 2010 15:47:27 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r213981 - head/sbin/hastd
Message-ID:  <201010171547.o9HFlRJw036628@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Sun Oct 17 15:47:27 2010
New Revision: 213981
URL: http://svn.freebsd.org/changeset/base/213981

Log:
  Log correct connection when canceling half-open connection.
  
  Submitted by:	Mikolaj Golub <to.my.trociny@gmail.com>
  MFC after:	3 days

Modified:
  head/sbin/hastd/hastd.c

Modified: head/sbin/hastd/hastd.c
==============================================================================
--- head/sbin/hastd/hastd.c	Sun Oct 17 15:25:33 2010	(r213980)
+++ head/sbin/hastd/hastd.c	Sun Oct 17 15:47:27 2010	(r213981)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201010171547.o9HFlRJw036628>