From f524a1720af5bacf807684d890afa85af4cbe5b7 Mon Sep 17 00:00:00 2001 From: nadiramra Date: Tue, 1 Jun 2010 16:36:08 +0000 Subject: AXIS2C-1467 Dangerous macros defs in axutil_unix.h and axutil_windows.h git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@950151 13f79535-47bb-0310-9956-ffa450edef68 --- util/src/network_handler.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'util/src') diff --git a/util/src/network_handler.c b/util/src/network_handler.c index 04e6ea6..0d11ef2 100644 --- a/util/src/network_handler.c +++ b/util/src/network_handler.c @@ -160,7 +160,8 @@ axutil_network_handler_create_server_socket( #endif /* Exec behaviour */ - AXIS2_CLOSE_SOCKET_ON_EXIT(sock) memset(&sock_addr, 0, sizeof(sock_addr)); + AXIS2_CLOSE_SOCKET_ON_EXIT(sock); + memset(&sock_addr, 0, sizeof(sock_addr)); sock_addr.sin_family = AF_INET; sock_addr.sin_addr.s_addr = htonl(INADDR_ANY); @@ -369,7 +370,8 @@ axutil_network_handler_create_dgram_svr_socket( } #endif /* Exec behaviour */ - AXIS2_CLOSE_SOCKET_ON_EXIT(sock) memset(&sock_addr, 0, sizeof(sock_addr)); + AXIS2_CLOSE_SOCKET_ON_EXIT(sock); + memset(&sock_addr, 0, sizeof(sock_addr)); sock_addr.sin_family = AF_INET; sock_addr.sin_addr.s_addr = htonl(INADDR_ANY); @@ -607,7 +609,8 @@ axutil_network_hadler_create_multicast_svr_socket( #endif /* Exec behaviour */ - AXIS2_CLOSE_SOCKET_ON_EXIT(sock) memset(&sock_addr, 0, sizeof(sock_addr)); + AXIS2_CLOSE_SOCKET_ON_EXIT(sock); + memset(&sock_addr, 0, sizeof(sock_addr)); sock_addr.sin_family = AF_INET; sock_addr.sin_addr.s_addr = htonl(INADDR_ANY); -- cgit v1.1-32-gdbae