summaryrefslogtreecommitdiff
path: root/lib/packet.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2011-02-04 13:29:12 +0100
committerLinus Nordberg <linus@nordu.net>2011-02-04 13:29:12 +0100
commit094640561e271d0224613c207b646488f437d8ef (patch)
tree1366b6af0bd5e4fcdfbfac7099ef391935dee53f /lib/packet.c
parenta47e09223afa714e647ad71eb1237114959bfb35 (diff)
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.
Diffstat (limited to 'lib/packet.c')
-rw-r--r--lib/packet.c2
1 files changed, 0 insertions, 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