Don't consume sent packets.
[radsecproxy.git] / 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