[netfilter-cvslog] r4117 - trunk/nfsim/tools

rusty at netfilter.org rusty at netfilter.org
Sun Jul 17 22:32:44 CEST 2005


Author: rusty at netfilter.org
Date: 2005-07-17 22:32:43 +0200 (Sun, 17 Jul 2005)
New Revision: 4117

Modified:
   trunk/nfsim/tools/module.c
Log:
Closed handle if module fails, otherwise modules which rely on this might load

Modified: trunk/nfsim/tools/module.c
===================================================================
--- trunk/nfsim/tools/module.c	2005-07-17 20:31:39 UTC (rev 4116)
+++ trunk/nfsim/tools/module.c	2005-07-17 20:32:43 UTC (rev 4117)
@@ -192,6 +192,7 @@
 	if (mod->init) {
 		int ret = mod->init();
 		if (ret != 0) {
+			dlclose(mod->handle);
 			talloc_free(mod);
 			sprintf(message, "Module %s loading failed: %i", 
 				name, ret);




More information about the netfilter-cvslog mailing list