mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-14 02:22:03 +08:00
eliminated auth message upper limit
This commit is contained in:
+2
-2
@@ -295,11 +295,11 @@ static int radius_auth_pass(void *ctx, const char *pass, unsigned pass_len)
|
||||
}
|
||||
}
|
||||
|
||||
static int radius_auth_msg(void *ctx, char *msg, size_t msg_size)
|
||||
static int radius_auth_msg(void *ctx, void *pool, char **msg)
|
||||
{
|
||||
struct radius_ctx_st *pctx = ctx;
|
||||
|
||||
strlcpy(msg, pctx->pass_msg, msg_size);
|
||||
*msg = talloc_strdup(pool, pctx->pass_msg);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user