From 6ada7959f4df3bf993a0db536882eb648b68b8b9 Mon Sep 17 00:00:00 2001 From: Jan Hutter Date: Mon, 7 Nov 2005 12:04:43 +0000 Subject: [PATCH] - error in memory allocation fixed --- Source/charon/socket.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Source/charon/socket.c b/Source/charon/socket.c index 1f1336fae..563f2b7a4 100644 --- a/Source/charon/socket.c +++ b/Source/charon/socket.c @@ -34,8 +34,9 @@ #include +typedef struct private_socket_s private_socket_t; -typedef struct { +struct private_socket_s{ /** * public functions */ @@ -45,7 +46,7 @@ typedef struct { * currently we only have one socket, maybe more in the future ? */ int socket_fd; -} private_socket_t; +}; /** * implementation of socket_t.receive @@ -111,7 +112,7 @@ status_t destroy(private_socket_t *this) socket_t *socket_create(u_int16_t port) { - private_socket_t *this = alloc_thing(socket_t, "private_socket_t"); + private_socket_t *this = alloc_thing(private_socket_t, "private_socket_t"); struct sockaddr_in addr; /* public functions */