summaryrefslogtreecommitdiffstats
path: root/src/fastd.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-26 23:51:41 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-26 23:51:41 +0200
commit9fd69a7893040cee7339246d5b17ab92b4d58a43 (patch)
treee61d9ef3a40996214d7f738f642b9ac18e6bf95b /src/fastd.c
parent5074b7d5e10c2383a3379a6df8b0708783ac704b (diff)
downloadfastd-9fd69a7893040cee7339246d5b17ab92b4d58a43.tar
fastd-9fd69a7893040cee7339246d5b17ab92b4d58a43.zip
Allow initating and accepting handshake instances to coexist; fix some memory corruption etc. found by Valgrind
Diffstat (limited to 'src/fastd.c')
-rw-r--r--src/fastd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 149a380..d2e0881 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -244,7 +244,6 @@ static void handle_tun(fastd_context *ctx) {
static void handle_socket(fastd_context *ctx, int sockfd) {
size_t max_len = ctx->conf->protocol->max_packet_size(ctx);
fastd_buffer buffer = fastd_buffer_alloc(max_len, ctx->conf->protocol->min_decrypt_head_space(ctx), 0);
-
uint8_t packet_type;
struct iovec iov[2] = {