X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet_packet.c;h=0828525f345ed1b59a5b79c8f05c9a7e14a6a976;hp=aa5bea3415750f07bd3ded17b7563bc92d28a353;hb=f4e80cc5e0d1689bcdd828ac7f158bd634b7dd20;hpb=fd40130eb6bbba34176d34936a01bb6a6f9121d4 diff --git a/src/net_packet.c b/src/net_packet.c index aa5bea34..0828525f 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_packet.c,v 1.1.2.37 2003/08/08 19:42:35 guus Exp $ + $Id: net_packet.c,v 1.1.2.38 2003/08/16 12:40:01 guus Exp $ */ #include "system.h" @@ -400,18 +400,6 @@ void handle_incoming_vpn_data(int sock) cp(); - if(getsockopt(sock, SOL_SOCKET, SO_ERROR, &x, &l) < 0) { - logger(LOG_ERR, _("This is a bug: %s:%d: %d:%s"), - __FILE__, __LINE__, sock, strerror(errno)); - cp_trace(); - exit(1); - } - - if(x) { - logger(LOG_ERR, _("Incoming data socket error: %s"), strerror(x)); - return; - } - pkt.len = recvfrom(sock, (char *) &pkt.seqno, MAXSIZE, 0, &from.sa, &fromlen); if(pkt.len <= 0) {