aboutsummaryrefslogtreecommitdiffstats
path: root/src/radius/radius_client.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-19 15:12:07 (GMT)
committerJouni Malinen <j@w1.fi>2009-12-19 15:12:07 (GMT)
commitaa235d2ef75d7f20d19b8ec5416cd63222e4d64e (patch)
treed7309dd7c86e8f4bca87e6595a24f13345f628d0 /src/radius/radius_client.c
parent9e7245bdb414dec167363b9178a37f4745afa595 (diff)
downloadhostap-aa235d2ef75d7f20d19b8ec5416cd63222e4d64e.zip
hostap-aa235d2ef75d7f20d19b8ec5416cd63222e4d64e.tar.gz
hostap-aa235d2ef75d7f20d19b8ec5416cd63222e4d64e.tar.bz2
Convert RADIUS message code to use wpabuf internally
Diffstat (limited to 'src/radius/radius_client.c')
-rw-r--r--src/radius/radius_client.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/radius/radius_client.c b/src/radius/radius_client.c
index 0ace8d1..f48df52 100644
--- a/src/radius/radius_client.c
+++ b/src/radius/radius_client.c
@@ -357,7 +357,8 @@ static int radius_client_retransmit(struct radius_client_data *radius,
entry->msg->hdr->identifier);
os_get_time(&entry->last_attempt);
- if (send(s, entry->msg->buf, entry->msg->buf_used, 0) < 0)
+ if (send(s, wpabuf_head(entry->msg->buf), wpabuf_len(entry->msg->buf),
+ 0) < 0)
radius_client_handle_send_error(radius, s, entry->msg_type);
entry->next_try = now + entry->next_wait;
@@ -673,7 +674,7 @@ int radius_client_send(struct radius_client_data *radius,
if (conf->msg_dumps)
radius_msg_dump(msg);
- res = send(s, msg->buf, msg->buf_used, 0);
+ res = send(s, wpabuf_head(msg->buf), wpabuf_len(msg->buf), 0);
if (res < 0)
radius_client_handle_send_error(radius, s, msg_type);