about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2001-12-26 03:36:57 +0000
committerAlexander Barton <alex@barton.de>2001-12-26 03:36:57 +0000
commitba331a2fe7539a145703d546460ec715a0a1ce24 (patch)
tree790cb4e276a46fc467eeff3f19bcc7438b07511c /src
parentc9067fb7ff6b40b19eeac818cde51bf72dee174b (diff)
downloadngircd-ba331a2fe7539a145703d546460ec715a0a1ce24.tar.gz
ngircd-ba331a2fe7539a145703d546460ec715a0a1ce24.zip
- Verbindungen mit Lesefehlern werden nun korrekt terminiert.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index c14b7504..70b4cf7d 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -9,11 +9,14 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an comBase beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: conn.c,v 1.12 2001/12/26 03:20:53 alex Exp $
+ * $Id: conn.c,v 1.13 2001/12/26 03:36:57 alex Exp $
  *
  * connect.h: Verwaltung aller Netz-Verbindungen ("connections")
  *
  * $Log: conn.c,v $
+ * Revision 1.13  2001/12/26 03:36:57  alex
+ * - Verbindungen mit Lesefehlern werden nun korrekt terminiert.
+ *
  * Revision 1.12  2001/12/26 03:20:53  alex
  * - PING/PONG-Timeout implementiert.
  *
@@ -75,6 +78,7 @@
 #include <sys/socket.h>
 #include <sys/time.h>
 #include <sys/types.h>
+#include <time.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 
@@ -570,7 +574,7 @@ LOCAL VOID Read_Request( CONN_ID Idx )
 	{
 		/* Fehler beim Lesen */
 		Log( LOG_ALERT, "Read error on connection %d: %s!", Idx, strerror( errno ));
-		Conn_Close( Idx, "Read error!" );
+		Conn_Close( Idx, NULL );
 		return;
 	}