]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Mfp: r296259
authorBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 9 Apr 2016 10:58:08 +0000 (10:58 +0000)
committerBjoern A. Zeeb <bz@FreeBSD.org>
Sat, 9 Apr 2016 10:58:08 +0000 (10:58 +0000)
commitf254aeda60a730b78e5c915a5d6e7cbe47605cd6
treea54d50c933b200075734b54169b5e865969deed1
parentb805f83da7bc5de73c53e8e4433af67260d94397
Mfp: r296259

We attach the "counter" to the tcpcbs. Thus don't free the
TCP Fastopen zone before the tcpcbs are gone, as otherwise
the zone won't be empty.
With that it should be safe to destroy the "tfo" zone without
leaking the memory.

PR: 164763
Reviewed by: gnn
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D5731
sys/netinet/tcp_fastopen.c
sys/netinet/tcp_subr.c