+#if 0
+static void
+send_large_packet (struct rs_connection *conn)
+{
+ struct rs_packet *msg0;
+ struct radius_packet *frpkt = NULL;
+ char *buf;
+ int f;
+
+ buf = malloc (RS_MAX_PACKET_LEN);
+ CU_ASSERT (buf != NULL);
+ memset (buf, 0, RS_MAX_PACKET_LEN);
+
+ CU_ASSERT (rs_packet_create (conn, &msg0) == 0);
+ /* 16 chunks --> heap corruption in evbuffer_drain detected by free() */
+ for (f = 0; f < 15; f++)
+ {
+ memset (buf, 'a' + f, 252);
+ //vp = pairmake ("EAP-Message", buf, T_OP_EQ);
+ CU_ASSERT (rs_packet_append_avp (msg0, fixme...) == RSE_OK);
+ }
+ CU_ASSERT (rs_packet_send (msg0, NULL) == 0);