Skip to content
Snippets Groups Projects
Commit 8395f3d9 authored by Guido Gunther's avatar Guido Gunther :zzz:
Browse files

auth: Initialize ret

Be pessimistic and assume failure when the pam handle did not get
cleanued up earlier.
parent 9ed5ac70
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ phosh_auth_finalize (GObject *object)
gint ret;
if (priv->pamh) {
ret = pam_end(priv->pamh, ret);
ret = pam_end(priv->pamh, PAM_AUTH_ERR);
if (ret != PAM_SUCCESS)
g_warning("pam_end error %s", pam_strerror (priv->pamh, ret));
priv->pamh = NULL;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment