Commit 8df220db 8df220dbf069cb4a6a6635ef89e4e3da07e5261b by Sergey Poznyakoff

Use pop3d_outf instead of fprintf; (pop3d_user): Removed unneded PAM_ERROR.

1 parent e809fe4f
......@@ -97,7 +97,7 @@ pop3d_user (const char *arg)
if ((strlen (arg) == 0) || (strchr (arg, ' ') != NULL))
return ERR_BAD_ARGS;
fprintf (ofile, "+OK\r\n");
pop3d_outf ("+OK\r\n");
fflush (ofile);
buf = pop3d_readline (ifile);
......@@ -182,7 +182,6 @@ pop3d_user (const char *arg)
pamerror = pam_acct_mgmt (pamh, 0);
PAM_ERROR;
pamerror = pam_setcred (pamh, PAM_ESTABLISH_CRED);
PAM_ERROR;
pam_errlab:
pam_end (pamh, PAM_SUCCESS);
openlog ("gnu-pop3d", LOG_PID, log_facility);
......@@ -250,7 +249,7 @@ pop3d_user (const char *arg)
pop3d_abquit (ERR_NO_MEM);
state = TRANSACTION;
fprintf (ofile, "+OK opened mailbox for %s\r\n", username);
pop3d_outf ("+OK opened mailbox for %s\r\n", username);
/* mailbox name */
{
......