0
0
mirror of https://github.com/darkk/redsocks.git synced 2025-08-26 03:35:30 +00:00
This commit is contained in:
Bin Jin 2010-11-25 17:47:20 +08:00 committed by crazyb0y
parent 0ed9eeb920
commit 3d5d22a59b
2 changed files with 2 additions and 2 deletions

View File

@ -450,7 +450,6 @@ static void httpr_client_read_content(struct bufferevent *buffev, redsocks_clien
static int post_buffer_len = 64 * 1024;
char *post_buffer = calloc(post_buffer_len, 1);
if (!post_buffer) {
free(post_buffer);
redsocks_log_error(client, LOG_ERR, "run out of memory");
redsocks_drop_client(client);
return;

View File

@ -14,6 +14,7 @@
struct redsocks_client_t;
struct redsocks_instance_t;
typedef struct relay_subsys_t {
char *name;
@ -23,7 +24,7 @@ typedef struct relay_subsys_t {
evbuffercb writecb;
void (*init)(struct redsocks_client_t *client);
void (*fini)(struct redsocks_client_t *client);
void (*instance_fini)(struct redsocks_client_t *client);
void (*instance_fini)(struct redsocks_instance_t *instance);
// connect_relay (if any) is called instead of redsocks_connect_relay after client connection acceptance
void (*connect_relay)(struct redsocks_client_t *client);
// client_eof is called while relay is not set up but EOF from client is received