- initializing of edg_wll_PlainConnection variable attributes is really needed!
authorJiří Škrábal <nykolas@ics.muni.cz>
Thu, 9 Dec 2004 13:05:10 +0000 (13:05 +0000)
committerJiří Škrábal <nykolas@ics.muni.cz>
Thu, 9 Dec 2004 13:05:10 +0000 (13:05 +0000)
org.glite.lb.client/src/producer.c

index b0b8737..b459910 100644 (file)
@@ -181,6 +181,7 @@ static int edg_wll_DoLogEventProxy(
        fprintf(stderr,"Logging to L&B Proxy at socket %s\n",
                context->p_lbproxy_store_sock? context->p_lbproxy_store_sock: socket_path);
 #endif
+       memset(&conn, 0, sizeof(conn));
        conn.sock = socket(PF_UNIX, SOCK_STREAM, 0);
        if (conn.sock < 0) {
                edg_wll_SetError(context,answer = errno,"socket() error");