Revision: 511
http://vde.svn.sourceforge.net/vde/?rev=511&view=rev
Author: rd235
Date: 2011-11-23 10:58:14 +0000 (Wed, 23 Nov 2011)
Log Message:
-----------
BUGFIXes: unitialized vars, unmanaged error case. TNX to michael-dev
Modified Paths:
--------------
trunk/vde-2/src/vde_switch/consmgmt.c
trunk/vde-2/src/vde_switch/datasock.c
trunk/vde-2/src/vde_switch/vde_switch.c
Modified: trunk/vde-2/src/vde_switch/consmgmt.c
===================================================================
--- trunk/vde-2/src/vde_switch/consmgmt.c 2011-11-16 18:02:17 UTC (rev
510)
+++ trunk/vde-2/src/vde_switch/consmgmt.c 2011-11-23 10:58:14 UTC (rev
511)
@@ -391,6 +391,7 @@
n = read(fd, buf, sizeof(buf));
if(n < 0){
printlog(LOG_WARNING,"Reading from mgmt
%s",strerror(errno));
+ return;
}
}
if (n==0) { /*EOF || POLLHUP*/
Modified: trunk/vde-2/src/vde_switch/datasock.c
===================================================================
--- trunk/vde-2/src/vde_switch/datasock.c 2011-11-16 18:02:17 UTC (rev
510)
+++ trunk/vde-2/src/vde_switch/datasock.c 2011-11-23 10:58:14 UTC (rev
511)
@@ -115,6 +115,8 @@
int optsize = sizeof(sockbufsize);
#endif
struct sockaddr_un sun_in;
+ // init sun_in memory
+ memset(&sun_in,0,sizeof(sun_in));
switch(type){
case REQ_NEW_PORT0:
port_request= -1;
Modified: trunk/vde-2/src/vde_switch/vde_switch.c
===================================================================
--- trunk/vde-2/src/vde_switch/vde_switch.c 2011-11-16 18:02:17 UTC (rev
510)
+++ trunk/vde-2/src/vde_switch/vde_switch.c 2011-11-23 10:58:14 UTC (rev
511)
@@ -184,6 +184,7 @@
p->events = POLLIN | POLLHUP;
fdpp[index]->type=type;
fdpp[index]->private_data=private_data;
+ fdpp[index]->timestamp=0;
nfds++;
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
vde-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vde-users