]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC: r285529
authorbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 21 Jul 2015 14:27:36 +0000 (14:27 +0000)
committerbrueffer <brueffer@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 21 Jul 2015 14:27:36 +0000 (14:27 +0000)
commit3cb1d10a9efed7977ebf67332ad4927a416f40f6
tree14076cae34dbf90ac16cf0053edc5325a930e369
parent449dad7b266b27cbcadf1c93c95f55c34048fc88
MFC: r285529

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
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@285749 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ggate/ggated/ggated.c