mirror of
https://github.com/3proxy/3proxy.git
synced 2026-11-22 23:59:41 +08:00
1 parent
556fea670e
commit
ccbc94e06b
1 file changed
+1
-1
@@ -94,7 +94,6 @@ static int pamfunc(struct clientparam *param)
|
|||||||
{
|
{
|
||||||
retval = pam_start ((char *)service, "3proxy@" , &conv, &pamh);
|
retval = pam_start ((char *)service, "3proxy@" , &conv, &pamh);
|
||||||
}
|
}
|
||||||
pthread_mutex_unlock(&pam_mutex);
|
|
||||||
if (retval == PAM_SUCCESS)
|
if (retval == PAM_SUCCESS)
|
||||||
retval = pam_set_item (pamh, PAM_USER, param->username);
|
retval = pam_set_item (pamh, PAM_USER, param->username);
|
||||||
/*fprintf(stderr,"pam_set_item1 rc=%d\n",retval);*/
|
/*fprintf(stderr,"pam_set_item1 rc=%d\n",retval);*/
|
||||||
@@ -112,6 +111,7 @@ static int pamfunc(struct clientparam *param)
|
|||||||
retval = pam_end (pamh, retval);
|
retval = pam_end (pamh, retval);
|
||||||
if (retval != PAM_SUCCESS)
|
if (retval != PAM_SUCCESS)
|
||||||
{ pamh = NULL; }
|
{ pamh = NULL; }
|
||||||
|
pthread_mutex_unlock(&pam_mutex);
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user