From 019c8c669df3547e550658a71e226b9d604c679b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Thu, 24 Dec 2009 11:58:19 +0200 Subject: [PATCH] Fix radius_example build --- radius_example/Makefile | 1 + radius_example/radius_example.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/radius_example/Makefile b/radius_example/Makefile index fe8ce0c48..bf7b1ff5d 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 4ff4337e8..dbf4b54b0 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();