summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-31 20:45:27 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-31 20:45:27 +0200
commit2a9e807c7822315f7fe7d45d8ed904ab83005c8f (patch)
tree69b5e5ad744ca73470278a5fd4f75791309d260a /src
parentee8b2de4b795fbc3b292e14c9f088244a7e08690 (diff)
downloadfastd-2a9e807c7822315f7fe7d45d8ed904ab83005c8f.tar
fastd-2a9e807c7822315f7fe7d45d8ed904ab83005c8f.zip
Fix double free when receiving unexpected packets from floating peers
Diffstat (limited to 'src')
-rw-r--r--src/fastd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/fastd.c b/src/fastd.c
index a0acbb1..58df7ec 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -335,8 +335,6 @@ static void handle_socket(fastd_context *ctx, int sockfd) {
else if(ctx->conf->n_floating) {
switch (packet_type) {
case PACKET_DATA:
- fastd_buffer_free(buffer);
-
peer = fastd_peer_add_temp(ctx, (fastd_peer_address*)&recvaddr);
ctx->conf->protocol->handle_recv(ctx, peer, buffer);
break;