PacketFence - BTS - PacketFence
View Issue Details
0000690PacketFencecorepublic2009-04-06 16:592012-02-29 10:57
rbalzard 
user4 
normalminoralways
closedfixed 
 
 
0000690: pfsetvlan does not handle very well when a switch is removed from the switch config
I just found out this issue:
I have some open entries in locationlog for a switch that has been deleted since in switches.conf.

pfsetvlan has a problem in do_port_security() since it does not validate if the switch is still defined in switches.conf. For pfsetvlan it is seems to be obvious that a switch is never deleted from the config.
But this could happened.

We should add a simple test here before doing anything with the "oldswitch" and make sure it is still defined.

Very low probability that this happens in "real life" but it should be fixed.
No tags attached.
Issue History
2009-04-06 16:59rbalzardNew Issue
2009-05-25 20:47user4Statusnew => assigned
2009-05-25 20:47user4Assigned To => user4
2009-05-25 21:03user4Statusassigned => closed
2009-05-25 21:03user4Note Added: 0001242
2009-05-25 21:03user4Resolutionopen => fixed
2010-04-15 17:55obilodeauCategory1.8.3 => 1.8.x
2012-02-29 10:57obilodeauCategory1.8.x => core

Notes
(0001242)
user4   
2009-05-25 21:03   
fixed in mtn revision f9350ffdf5625a1bc4e5420ecb20ae0f69bd780e