Don't consume sent packets.
authorLinus Nordberg <linus@nordu.net>
Fri, 4 Feb 2011 12:29:12 +0000 (13:29 +0100)
committerLinus Nordberg <linus@nordu.net>
Fri, 4 Feb 2011 12:29:12 +0000 (13:29 +0100)
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

index 07baf5e..60ac18b 100644 (file)
@@ -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