summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--radmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/radmsg.c b/radmsg.c
index 1a0f912..00c13c9 100644
--- a/radmsg.c
+++ b/radmsg.c
@@ -273,7 +273,7 @@ struct radmsg *buf2radmsg(uint8_t *buf, uint8_t *secret, uint8_t *rqauth) {
}
}
- if (rqauth && !_validauth(buf, rqauth, secret)) {
+ if (rqauth && secret && !_validauth(buf, rqauth, secret)) {
debug(DBG_WARN, "buf2radmsg: Invalid auth, ignoring reply");
return NULL;
}