summaryrefslogtreecommitdiff
path: root/security/dcetest/files/patch-tcpstuff.c
blob: d05de6c8575b0c3424f424cc17d0bfabd5b62fa8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- tcpstuff.c.orig	Sat Jan 11 06:46:08 2003
+++ tcpstuff.c	Sat Jan 11 06:50:59 2003
@@ -229,6 +229,7 @@
 
 
 /* this function takes in a listenFd and returns an acceptedFd */
+/* This is not used and gives a security warning in FreeBSD ports
 int
 tcp_accept(int listenFd)
 {
@@ -242,12 +243,14 @@
 			 (struct sockaddr *)&clientAddr,
 			 &addrLen)) < 0)
     {
+*/
       /* This is always an error, looping or not */
+/*
       return -1;
     }
-  
+*/  
   /* Set the "don't linger on close" option */
-  
+/*  
   lingerVal.l_onoff = 0;
   lingerVal.l_linger = 0;
   if (setsockopt(clientFd, SOL_SOCKET, SO_LINGER,
@@ -260,3 +263,4 @@
   return(clientFd);
   
 }
+*/