Commit 8395f3d9 authored by Guido Gunther's avatar Guido Gunther

auth: Initialize ret

Be pessimistic and assume failure when the pam handle did not get
cleanued up earlier.
parent 9ed5ac70
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment