mirror of
https://github.com/darkk/redsocks.git
synced 2025-08-26 19:55:30 +00:00
fix typo
This commit is contained in:
parent
0ed9eeb920
commit
3d5d22a59b
@ -450,7 +450,6 @@ static void httpr_client_read_content(struct bufferevent *buffev, redsocks_clien
|
|||||||
static int post_buffer_len = 64 * 1024;
|
static int post_buffer_len = 64 * 1024;
|
||||||
char *post_buffer = calloc(post_buffer_len, 1);
|
char *post_buffer = calloc(post_buffer_len, 1);
|
||||||
if (!post_buffer) {
|
if (!post_buffer) {
|
||||||
free(post_buffer);
|
|
||||||
redsocks_log_error(client, LOG_ERR, "run out of memory");
|
redsocks_log_error(client, LOG_ERR, "run out of memory");
|
||||||
redsocks_drop_client(client);
|
redsocks_drop_client(client);
|
||||||
return;
|
return;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
|
|
||||||
struct redsocks_client_t;
|
struct redsocks_client_t;
|
||||||
|
struct redsocks_instance_t;
|
||||||
|
|
||||||
typedef struct relay_subsys_t {
|
typedef struct relay_subsys_t {
|
||||||
char *name;
|
char *name;
|
||||||
@ -23,7 +24,7 @@ typedef struct relay_subsys_t {
|
|||||||
evbuffercb writecb;
|
evbuffercb writecb;
|
||||||
void (*init)(struct redsocks_client_t *client);
|
void (*init)(struct redsocks_client_t *client);
|
||||||
void (*fini)(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
|
// connect_relay (if any) is called instead of redsocks_connect_relay after client connection acceptance
|
||||||
void (*connect_relay)(struct redsocks_client_t *client);
|
void (*connect_relay)(struct redsocks_client_t *client);
|
||||||
// client_eof is called while relay is not set up but EOF from client is received
|
// client_eof is called while relay is not set up but EOF from client is received
|
||||||
|
Loading…
Reference in New Issue
Block a user