Fix an issue with accept_filter introduced with r261242:
authorjch <jch@FreeBSD.org>
Thu, 29 Sep 2016 11:18:48 +0000 (11:18 +0000)
committerjch <jch@FreeBSD.org>
Thu, 29 Sep 2016 11:18:48 +0000 (11:18 +0000)
commit20981a0a7694a01ae18acb89e5a576ab28c39cfe
treecc244b14b2782db7e717896ae3e9adb631d22e78
parent8339cb5e5bb9d98ef14121b4a43d4413fff00f90
Fix an issue with accept_filter introduced with r261242:

As a side effect of r261242 when using accept_filter the
first call to soisconnected() is done earlier in tcp_input()
instead of tcp_do_segment() context.  Restore the expected behaviour.

Note:  This call to soisconnected() seems to be extraneous in all
cases (with or without accept_filter).  Will be addressed in a
separate commit.

PR: 212920
Reported by: Alexey
Tested by:              Alexey, jch
Sponsored by:           Verisign, Inc.
MFC after: 1 week
sys/netinet/tcp_syncache.c