Commit Diff


commit - ed72bf4cebe47dda78a41fbeebe803caa13f2cfa
commit + 4daf780f0188e6b7658047588399c813d74de917
blob - cd5921a46d7206e4b9009b58e310280354670b7d
blob + d3b5357c8cfa2ed1108cb1c7f6964461e92b06bb
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
@@ -184,7 +184,7 @@ cb_connserver(int sock, UNUSED short what)
 			/* connection to dst_addr[0] in progress, remove this address... */
 			Conf_Server[res].dst_addr[0] = Conf_Server[res].dst_addr[1];
 
-			memset(&Conf_Server[res].dst_addr[1], 0, sizeof(&Conf_Server[res].dst_addr[1]));
+			memset(&Conf_Server[res].dst_addr[1], 0, sizeof(Conf_Server[res].dst_addr[1]));
 		}
 		return;
 	}
@@ -192,7 +192,7 @@ cb_connserver(int sock, UNUSED short what)
 	res = Conf_GetServer(idx);
 	assert(res >= 0);
 	if (res >= 0) /* connect succeeded, remove all additional addresses */
-		memset(&Conf_Server[res].dst_addr, 0, sizeof(&Conf_Server[res].dst_addr));
+		memset(&Conf_Server[res].dst_addr, 0, sizeof(Conf_Server[res].dst_addr));
 	Conn_OPTION_DEL( &My_Connections[idx], CONN_ISCONNECTING );
 #ifdef SSL_SUPPORT
 	if ( Conn_OPTION_ISSET( &My_Connections[idx], CONN_SSL_CONNECT )) {