 src/ngircd/conn.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 0b21d3a..37cde1b 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -1940,10 +1940,15 @@ Conn_GetClient( CONN_ID Idx )
 
 #ifdef SSL_SUPPORT
 /* we cannot access My_Connections in irc-info.c */
+
 GLOBAL bool
 Conn_GetCipherInfo(CONN_ID Idx, char *buf, size_t len)
 {
-	return ConnSSL_GetCipherInfo(&My_Connections[Idx], buf, len);
+	bool result;
+	result = ConnSSL_GetCipherInfo(&My_Connections[Idx], buf, len);
+	if (result)
+		ngt_TrimStr(buf);
+	return result;
 }
 
 
@@ -1952,5 +1957,7 @@ Conn_UsesSSL(CONN_ID Idx)
 {
 	return Conn_OPTION_ISSET(&My_Connections[Idx], CONN_SSL);
 }
+
 #endif
+
 /* -eof- */
