properly initialize group name in plain passwd.

This commit is contained in:
Nikos Mavrogiannopoulos
2013-07-01 13:46:33 +02:00
parent c6b1113833
commit f307fbcdbe
+1 -1
View File
@@ -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)