diff options
author | Julien Dessaux | 2018-08-23 14:07:58 +0200 |
---|---|---|
committer | Julien Dessaux | 2018-08-23 17:41:44 +0200 |
commit | 4da77dcb10c74c4f369d731addf19c6a065e0684 (patch) | |
tree | 7b98cd7c8680ad6d90a4fcbd27f5020eb433adf5 /src/client.c | |
parent | Code cleaning and added error handling (diff) | |
download | bastion-4da77dcb10c74c4f369d731addf19c6a065e0684.tar.gz bastion-4da77dcb10c74c4f369d731addf19c6a065e0684.tar.bz2 bastion-4da77dcb10c74c4f369d731addf19c6a065e0684.zip |
Added address sanitization and fixed found bugs
Diffstat (limited to '')
-rw-r--r-- | src/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c index 64df1eb..d7ecca6 100644 --- a/src/client.c +++ b/src/client.c @@ -139,6 +139,7 @@ struct client_channel_data_struct* client_dial(ssh_event event, struct proxy_cha } cdata->client_channel_cb = malloc(sizeof(*cdata->client_channel_cb)); + memset(cdata->client_channel_cb, 0, sizeof(*cdata->client_channel_cb)); cdata->client_channel_cb->userdata = cdata; cdata->client_channel_cb->channel_data_function = client_data_function; cdata->client_channel_cb->channel_eof_function = client_channel_eof_callback; @@ -160,7 +161,7 @@ struct client_channel_data_struct* client_dial(ssh_event event, struct proxy_cha channel_clean: ssh_channel_free(cdata->my_channel); auth_clean: - // TODO + // TODO when pubkey match implemented fix this //pubkey_nomatch_clean: ssh_string_free_char(hexa); pubkey_hash_clean: |