Revision: 560
          http://sourceforge.net/p/vde/svn/560
Author:   rd235
Date:     2013-05-26 19:12:24 +0000 (Sun, 26 May 2013)
Log Message:
-----------
Bugfix: sigsegv when a new client got plugged in on a preset port on VLAN 4095 
(no VLAN) FIXED

Modified Paths:
--------------
    branches/rd235/vde-2/src/vde_switch/port.c
    trunk/vde-2/src/vde_switch/port.c

Modified: branches/rd235/vde-2/src/vde_switch/port.c
===================================================================
--- branches/rd235/vde-2/src/vde_switch/port.c  2013-05-26 14:35:13 UTC (rev 
559)
+++ branches/rd235/vde-2/src/vde_switch/port.c  2013-05-26 19:12:24 UTC (rev 
560)
@@ -297,9 +297,8 @@
                                if (port->vlanuntag != NOVLAN) {
                                        
ba_set(vlant[port->vlanuntag].bcuntag,portno);
                                        
ba_clr(vlant[port->vlanuntag].bctag,portno);
+                                       
ba_clr(vlant[port->vlanuntag].notlearning,portno);
                                }
-                               if (port->vlanuntag != 4095)
-                                       
ba_clr(vlant[port->vlanuntag].notlearning,portno);
 #ifdef VDE_VTRILL
                                if (ba_check(vlant[vtrillvlan].bctag,portno))
                                        port->vtrilldata=vtrill_newport(portno);

Modified: trunk/vde-2/src/vde_switch/port.c
===================================================================
--- trunk/vde-2/src/vde_switch/port.c   2013-05-26 14:35:13 UTC (rev 559)
+++ trunk/vde-2/src/vde_switch/port.c   2013-05-26 19:12:24 UTC (rev 560)
@@ -283,8 +283,8 @@
                                if (port->vlanuntag != NOVLAN) {
                                        
ba_set(vlant[port->vlanuntag].bcuntag,portno);
                                        
ba_clr(vlant[port->vlanuntag].bctag,portno);
+                                       
ba_clr(vlant[port->vlanuntag].notlearning,portno);
                                }
-                               
ba_clr(vlant[port->vlanuntag].notlearning,portno);
                        } else {
                                ep->next=port->ep;
                                port->ep=ep;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
vde-users mailing list
vde-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vde-users

Reply via email to