[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netfilter
Subject:    iptables command bugfix
From:       Harald Welte <laforge () sunbeam ! franken ! de>
Date:       2000-07-31 20:11:12
[Download RAW message or body]

Hi Rusty!

As I already told You, i  discovered a small but while
playing around with the iptables plugin system. If for some reason iptables
was unable to open the shared library, there was no error message. 

-- 
Live long and prosper
- Harald Welte / laforge@sunbeam.franken.de    http://www.sunbeam.franken.de
============================================================================
GCS/E d- s-/ a--- C+++ UL++++$ P+++ L+++$ E+ W+++ N++ K- w--- O M-- PS+ PE++
Y-- PGP++ t+++ 5-- !X !R tv- b+++ DI? D+ G+ e* h++ r++ y+(*)

["iptables-dlerror-fix.diff" (text/plain)]

--- iptables.c.old	Mon Jul 31 21:58:12 2000
+++ iptables.c	Mon Jul 31 22:04:22 2000
@@ -635,7 +635,8 @@
 					   name);
 		} else if (tryload == LOAD_MUST_SUCCEED)
 			exit_error(PARAMETER_PROBLEM,
-				   "Couldn't load match `%s'\n", name);
+				   "Couldn't load match `%s':%s\n", 
+				   name, dlerror());
 	}
 
 	return ptr;
@@ -883,7 +884,8 @@
 					   name);
 		} else if (tryload == LOAD_MUST_SUCCEED)
 			exit_error(PARAMETER_PROBLEM,
-				   "Couldn't load target `%s'\n", name);
+				   "Couldn't load target `%s':%s\n", 
+				   name, dlerror());
 	}
 
 	return ptr;
@@ -1715,7 +1717,7 @@
 			set_option(&options, OPT_JUMP, &fw.ip.invflags,
 				   invert);
 			jumpto = parse_target(optarg);
-			target = find_target(jumpto, TRY_LOAD);
+			target = find_target(jumpto, LOAD_MUST_SUCCEED);
 
 			if (target) {
 				size_t size;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic