Revision: 426
http://vde.svn.sourceforge.net/vde/?rev=426&view=rev
Author: shammash
Date: 2010-07-03 16:28:00 +0000 (Sat, 03 Jul 2010)
Log Message:
-----------
vde_switch: fix port/create bug
port/create doesn't report an error when port allocation fails, fixing
Signed-off-by: Luca Bigliardi <[email protected]>
Modified Paths:
--------------
trunk/vde-2/src/vde_switch/port.c
Modified: trunk/vde-2/src/vde_switch/port.c
===================================================================
--- trunk/vde-2/src/vde_switch/port.c 2010-07-03 16:27:37 UTC (rev 425)
+++ trunk/vde-2/src/vde_switch/port.c 2010-07-03 16:28:00 UTC (rev 426)
@@ -787,7 +787,9 @@
if (portv[val] != NULL)
return EEXIST;
port=alloc_port(val);
- if (port > 0) portv[port]->flag |= NOTINPOOL;
+ if (port < 0)
+ return ENOSPC;
+ portv[port]->flag |= NOTINPOOL;
return 0;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
vde-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vde-users