Commit Diff


commit - 44acf41cc172e8131c3a987d430b9f948afd26ad
commit + e1598e2670d599441f63c01f8df2ee5158ead2d4
blob - d62be359c5435000418d75956e9b5fa2b41e086e
blob + 06d655bf345bbc0f47de2546fd13ad458a02273a
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
@@ -900,7 +900,6 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const cha
 	 * sub-processes are closed down. */
 
 	CLIENT *c;
-	const char *txt;
 	double in_k, out_k;
 	UINT16 port;
 #ifdef ZLIB
@@ -922,13 +921,6 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const cha
 
 	/* Mark link as "closing" */
 	Conn_OPTION_ADD( &My_Connections[Idx], CONN_ISCLOSING );
-
-	if (LogMsg)
-		txt = LogMsg;
-	else
-		txt = FwdMsg;
-	if (! txt)
-		txt = "Reason unknown";
 
 	port = ng_ipaddr_getport(&My_Connections[Idx].addr);
 	Log(LOG_INFO, "Shutting down connection %d (%s) with %s:%d ...", Idx,