Browse Source

Fix radius_example build

Jouni Malinen 15 years ago
parent
commit
019c8c669d
2 changed files with 2 additions and 1 deletions
  1. 1 0
      radius_example/Makefile
  2. 1 1
      radius_example/radius_example.c

+ 1 - 0
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

+ 1 - 1
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();