mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
pam_winbind: Use the correct type to check the pam_parse() return code
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
This commit is contained in:
parent
fca78dddb4
commit
4c139e23e9
@ -551,6 +551,7 @@ static int _pam_winbind_init_context(pam_handle_t *pamh,
|
||||
struct pwb_context **ctx_p)
|
||||
{
|
||||
struct pwb_context *r = NULL;
|
||||
int ctrl_code;
|
||||
|
||||
#ifdef HAVE_GETTEXT
|
||||
textdomain_init();
|
||||
@ -567,11 +568,12 @@ static int _pam_winbind_init_context(pam_handle_t *pamh,
|
||||
r->flags = flags;
|
||||
r->argc = argc;
|
||||
r->argv = argv;
|
||||
r->ctrl = _pam_parse(pamh, flags, argc, argv, type, &r->dict);
|
||||
if (r->ctrl == -1) {
|
||||
ctrl_code = _pam_parse(pamh, flags, argc, argv, type, &r->dict);
|
||||
if (ctrl_code == -1) {
|
||||
TALLOC_FREE(r);
|
||||
return PAM_SYSTEM_ERR;
|
||||
}
|
||||
r->ctrl = ctrl_code;
|
||||
|
||||
*ctx_p = r;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user