Hi Michael,
Can you try this patch please? 

diff --git a/lib/pf/SwitchFactory.pm b/lib/pf/SwitchFactory.pm
index f90a216..e6dba29 100644
--- a/lib/pf/SwitchFactory.pm
+++ b/lib/pf/SwitchFactory.pm
@@ -144,7 +144,7 @@ sub instantiate {
     });
     my ($module, $type);
     pfconfig::timeme::timeme('type import', sub {
-    $type = $switch_data->{'type'};
+    $type = untaint_chain( $switch_data->{'type'} );
     if ($requestedSwitch ne 'default') {
         $module = getModule($type);
     } else {



Regards,
--
Louis Munro
[email protected]  ::  www.inverse.ca 
+1.514.447.4918 x125  :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

On Oct 8, 2015, at 14:04 , <[email protected]> <[email protected]> wrote:

> Hi,
> 
> I'm currently installing/configuring Packetfence on Centos 6.7
> 
> When i try to start snmptrapd and/or pfsetvlan i get a fatal error:
> 
> Oct 08 19:58:22 pfcmd.pl(30293) ERROR: Failed to load module
> pf::Switch::PacketFence: PacketFence (pf::SwitchFactory::getModule)
> Oct 08 19:58:22 pfcmd.pl(30293) ERROR: Can not load perl module for switch
> 127.0.0.1, type: PacketFence. The type is unknown or the perl module has
> compilation errors.  (pf::SwitchFactory::__ANON__)
> Oct 08 19:58:22 pfcmd.pl(30293) FATAL: Can't call method "new" on an
> undefined value at /usr/local/pf/lib/pf/SwitchFactory.pm line 165.
> (pf::SwitchFactory::__ANON__)
> 
> When i disable the two services, Packetfence starts without problems, if i
> keep them enabled more services won't start because of the fatal error.
> 
> Am i using a wrong version, or is this a problem in the code?
> 
> Some information about the system:
> Uname: Linux packetfence.***.nl 2.6.32-573.7.1.el6.x86_64 #1 SMP Tue Sep 22
> 22:00:00 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
> Perl: This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi
> Repo: packetfence and base.
> 
> Regards,
> Michael Bovet
> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users

------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to