From: Jiří Škrábal Date: Thu, 9 Dec 2004 13:05:10 +0000 (+0000) Subject: - initializing of edg_wll_PlainConnection variable attributes is really needed! X-Git-Tag: glite-wms-utils-exception_R_1_0_0~10 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=71cdba6f57b4bd9d508e0231edc65ffea75ddfe0;p=jra1mw.git - initializing of edg_wll_PlainConnection variable attributes is really needed! --- diff --git a/org.glite.lb.client/src/producer.c b/org.glite.lb.client/src/producer.c index b0b8737..b459910 100644 --- a/org.glite.lb.client/src/producer.c +++ b/org.glite.lb.client/src/producer.c @@ -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");