mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-10-13 18:12:03 +08:00
properly initialize group name in plain passwd.
This commit is contained in:
+1
-1
@@ -40,6 +40,7 @@ struct plain_ctx_st* pctx;
|
||||
return ERR_AUTH_FAIL;
|
||||
|
||||
snprintf(pctx->username, sizeof(pctx->username), "%s", username);
|
||||
pctx->groupname[0] = 0;
|
||||
pctx->passwd = additional;
|
||||
|
||||
*ctx = pctx;
|
||||
@@ -56,7 +57,6 @@ struct plain_ctx_st* pctx = ctx;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* Returns 0 if the user is successfully authenticated, and sets the appropriate group name.
|
||||
*/
|
||||
static int plain_auth_pass(void* ctx, const char* pass, unsigned pass_len)
|
||||
|
||||
Reference in New Issue
Block a user