[NeoStats-Devel] [Commits] r2513 - in trunk/modules: extauth statserv

[email protected]
Newsgroups gmane.comp.neostats.devel
Message-ID <[email protected]>
Author: Mark
Date: Sat Apr 16 03:48:01 2005
New Revision: 2513

Modified:
   trunk/modules/extauth/extauth.c
   trunk/modules/statserv/server.c
Log:
bug in hash delete

Modified: trunk/modules/extauth/extauth.c
==============================================================================
--- trunk/modules/extauth/extauth.c	(original)
+++ trunk/modules/extauth/extauth.c	Sat Apr 16 03:48:01 2005
@@ -195,9 +195,10 @@
 	node = hash_lookup( accesshash, cmdparams->av[1] );
 	if( node ) 
 	{
-		ns_free( hnode_get( node ) );
+		AccessEntry *access =( AccessEntry * )hnode_get( node );
 		hash_delete( accesshash, node );
 		hnode_destroy( node );
+		ns_free( access );
 		DBADelete( "AccessList", cmdparams->av[1] );
 		irc_prefmsg( NULL, cmdparams->source, "Deleted %s from access list", cmdparams->av[1] );
 	} 

Modified: trunk/modules/statserv/server.c
==============================================================================
--- trunk/modules/statserv/server.c	(original)
+++ trunk/modules/statserv/server.c	Sat Apr 16 03:48:01 2005
@@ -292,9 +292,10 @@
 	}
 	node = hash_lookup(serverstathash, cmdparams->av[1]);
 	if (node) {
-		ns_free (hnode_get (node));
+		ss = (serverstat *ss)hnode_get( node );
 		hash_delete (serverstathash, node);
 		hnode_destroy (node);
+		ns_free (ss);
 		irc_prefmsg (ss_bot, cmdparams->source, "Removed %s from the database.",
 			cmdparams->av[1]);
 		nlog (LOG_NOTICE, "%s deleted stats for %s", cmdparams->source->name, cmdparams->av[1]);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.