Revision: 417
http://vde.svn.sourceforge.net/vde/?rev=417&view=rev
Author: rd235
Date: 2010-06-02 15:48:21 +0000 (Wed, 02 Jun 2010)
Log Message:
-----------
On system using both vde_switch(es) and kvde_switch(es), libvdeplug kept an ipn
socket open when using a vde_switch.
Modified Paths:
--------------
trunk/vde-2/src/lib/libvdeplug.c
Modified: trunk/vde-2/src/lib/libvdeplug.c
===================================================================
--- trunk/vde-2/src/lib/libvdeplug.c 2010-06-02 15:16:14 UTC (rev 416)
+++ trunk/vde-2/src/lib/libvdeplug.c 2010-06-02 15:48:21 UTC (rev 417)
@@ -210,8 +210,6 @@
if((conn->fddata = socket(AF_IPN_STOLEN,SOCK_RAW,IPN_ANY)) >= 0) {
/* IPN_STOLEN service exists */
sockun->sun_family = AF_IPN_STOLEN;
- }
- if (conn->fddata >= 0) {
if (port != 0 || req->type == REQ_NEW_PORT0)
setsockopt(conn->fddata,0,IPN_SO_PORT,&port,sizeof(port));
/* If we're given a sockname, just try it */
@@ -242,7 +240,8 @@
*(conn->inpath.sun_path)=0; /*null string, do not
delete "return path"*/
conn->fdctl=-1;
goto cleanup;
- }
+ } else
+ close(conn->fddata);
}
#endif
if((conn->fdctl = socket(AF_UNIX, SOCK_STREAM, 0)) < 0)
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
_______________________________________________
vde-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vde-users