1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Do this the Right Way (tm), i.e. use shutdown() instead of fooling around

with the size of the receive buffer.

Pointed out by:	ru
This commit is contained in:
Dag-Erling Smørgrav 2000-01-14 15:37:18 +00:00
parent 3a695cf8f7
commit 3a62556310
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55974

View File

@ -418,12 +418,8 @@ main(argc, argv)
}
}
if (finet >= 0 && SecureMode) {
int bufsize;
bufsize = 1;
if (setsockopt(finet, SOL_SOCKET, SO_RCVBUF,
&bufsize, sizeof bufsize) < 0) {
logerror("setsockopt");
if (shutdown(finet, SHUT_RD) < 0) {
logerror("shutdown");
if (!Debug)
die(0);
}