aboutsummaryrefslogtreecommitdiffstats
path: root/radius_example
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2009-12-24 11:58:19 +0200
committerJouni Malinen <j@w1.fi>2009-12-24 11:58:19 +0200
commit019c8c669df3547e550658a71e226b9d604c679b (patch)
tree15c78aecce6cb894c1458e5bc641f7a3d5f665b4 /radius_example
parentfbbfcbac29c0b3d2c6702e2e1123e93087747386 (diff)
downloadexternal_wpa_supplicant_8_ti-019c8c669df3547e550658a71e226b9d604c679b.zip
external_wpa_supplicant_8_ti-019c8c669df3547e550658a71e226b9d604c679b.tar.gz
external_wpa_supplicant_8_ti-019c8c669df3547e550658a71e226b9d604c679b.tar.bz2
Fix radius_example build
Diffstat (limited to 'radius_example')
-rw-r--r--radius_example/Makefile1
-rw-r--r--radius_example/radius_example.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/radius_example/Makefile b/radius_example/Makefile
index fe8ce0c..bf7b1ff 100644
--- a/radius_example/Makefile
+++ b/radius_example/Makefile
@@ -18,6 +18,7 @@ CFLAGS += -I../src/utils
OBJS += ../src/utils/common.o
OBJS += ../src/utils/os_unix.o
OBJS += ../src/utils/wpa_debug.o
+OBJS += ../src/utils/wpabuf.o
OBJS += ../src/utils/eloop.o
OBJS += ../src/utils/ip_addr.o
OBJS += ../src/crypto/md5.o ../src/crypto/md5-internal.o
diff --git a/radius_example/radius_example.c b/radius_example/radius_example.c
index 4ff4337..dbf4b54 100644
--- a/radius_example/radius_example.c
+++ b/radius_example/radius_example.c
@@ -44,7 +44,7 @@ static RadiusRxResult receive_auth(struct radius_msg *msg,
{
/* struct radius_ctx *ctx = data; */
printf("Received RADIUS Authentication message; code=%d\n",
- msg->hdr->code);
+ radius_msg_get_hdr(msg)->code);
/* We're done for this example, so request eloop to terminate. */
eloop_terminate();