]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If ggated's exports_find() fails, the connection is removed before
authorbrueffer <brueffer@FreeBSD.org>
Tue, 14 Jul 2015 09:25:10 +0000 (09:25 +0000)
committerbrueffer <brueffer@FreeBSD.org>
Tue, 14 Jul 2015 09:25:10 +0000 (09:25 +0000)
commit4ebfbfaa3f9312ade405ef336ee711fd221ca1ac
treec0b9c6bc3c1b2ec2ab541c11a943906127729d48
parent96a5a3791e2b7cac20f0eb7ded262867ba72de7a
If ggated's exports_find() fails, the connection is removed before
(trying to) report the problem to the client.

sendfail() is called with an already closed socket and thus it
fails to inform the client about the problem.

Fix this by calling sendfail() before connection_remove().

PR: 195944
Submitted by: Fabian Keil
Reviewed by: pjd
MFC after: 1 week
sbin/ggate/ggated/ggated.c