- error in memory allocation fixed

This commit is contained in:
Jan Hutter
2005-11-07 12:04:43 +00:00
parent b9439120a3
commit 6ada7959f4
+4 -3
View File
@@ -34,8 +34,9 @@
#include <pluto/defs.h>
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 */