summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/include/radsec/radsec.h4
-rw-r--r--lib/packet.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/include/radsec/radsec.h b/lib/include/radsec/radsec.h
index dd784cc..8e97072 100644
--- a/lib/include/radsec/radsec.h
+++ b/lib/include/radsec/radsec.h
@@ -112,8 +112,8 @@ void rs_server_set_tries(struct rs_peer *server, int tries);
/* Packet. */
int rs_packet_create_acc_request(struct rs_connection *conn,
struct rs_packet **pkt,
- const char *user_name,
- const char *user_pw);
+ const char *user_name, /* FIXME: remove? */
+ const char *user_pw); /* FIXME: remove? */
void rs_packet_destroy(struct rs_packet *pkt);
void rs_packet_add_attr(struct rs_packet *pkt, struct rs_attr *attr);
int rs_packet_send(struct rs_packet *pkt, void *data);
diff --git a/lib/packet.c b/lib/packet.c
index 7872a5a..cdd094a 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -203,7 +203,7 @@ _read_cb (struct bufferevent *bev, void *ctx)
return;
}
- /* decode and decrypt */
+ /* Decode and decrypt. */
if (rad_decode (pkt->rpkt, pkt->original->rpkt,
pkt->conn->active_peer->secret))
{
@@ -486,6 +486,7 @@ rs_packet_destroy(struct rs_packet *pkt)
{
if (pkt)
{
+ // TODO: free all attributes
rad_free (&pkt->rpkt);
rs_free (pkt->conn->ctx, pkt);
}