From 094640561e271d0224613c207b646488f437d8ef Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Fri, 4 Feb 2011 13:29:12 +0100 Subject: Don't consume sent packets. A sent packet is a fine thing to have when you're verifying the Response Authenticator. We could solve this by having an upper layer saving only the Request Authenticator somewhere instead the whole packet and we might just do that at some point which is not now. --- lib/packet.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/packet.c b/lib/packet.c index 07baf5e..60ac18b 100644 --- a/lib/packet.c +++ b/lib/packet.c @@ -130,8 +130,6 @@ _write_cb (struct bufferevent *bev, void *ctx) #endif if (event_base_loopbreak (pkt->conn->evb) < 0) abort (); /* FIXME */ - if (!pkt->conn->callbacks.sent_cb) /* Callback owns the packet now. */ - rs_packet_destroy (pkt); } static void -- cgit v1.1