From ac2e14a8697e4d3f3fe7237b58e98a387b0c4b9d Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 11 Aug 2019 04:00:13 +0000 Subject: [PATCH] Prevent reference to undefined symbol with CONFIG_NO_RADIUS --- src/radius/radius.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/radius/radius.h b/src/radius/radius.h index 05fddbaf2..ec21150f7 100644 --- a/src/radius/radius.h +++ b/src/radius/radius.h @@ -330,6 +330,7 @@ char * radius_msg_get_tunnel_password(struct radius_msg *msg, int *keylen, const u8 *secret, size_t secret_len, struct radius_msg *sent_msg, size_t n); +#ifndef CONFIG_NO_RADIUS static inline int radius_msg_add_attr_int32(struct radius_msg *msg, u8 type, u32 value) { @@ -349,6 +350,8 @@ static inline int radius_msg_get_attr_int32(struct radius_msg *msg, u8 type, *value = ntohl(val); return 0; } +#endif /* CONFIG_NO_RADIUS */ + int radius_msg_get_attr_ptr(struct radius_msg *msg, u8 type, u8 **buf, size_t *len, const u8 *start); int radius_msg_count_attr(struct radius_msg *msg, u8 type, int min_len); -- 2.45.2