svn commit: r213981 - head/sbin/hastd

Pawel Jakub Dawidek pjd at FreeBSD.org
Sun Oct 17 15:47:27 UTC 2010


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 at 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);


More information about the svn-src-head mailing list