1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

fix peek table bug with new portmon code

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@809 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Philip Kovacs 2006-12-10 05:11:54 +00:00
parent d484bcd750
commit 91ca82eb3b
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
# $Id$
2006-12-10
* Fix peek table bug with new portmon code.
2006-12-09
* Replaced hash module used by libtcp-portmon with GLib's GHashTable,
due to licensing issue noted by Fedora Core packagers.

View File

@ -167,7 +167,7 @@ void rebuild_tcp_port_monitor_peek_table(
return;
/* zero out the peek array */
memset( p_monitor->p_peek, 0, g_hash_table_size (p_monitor->hash) * sizeof(tcp_connection_t *) );
memset( p_monitor->p_peek, 0, p_monitor->max_port_monitor_connections * sizeof(tcp_connection_t *) );
for ( p_node=p_monitor->connection_list.p_head; p_node!=NULL; p_node=p_node->p_next, i++ )
{