PAM_AUTH_ERR messages

Sean seanlkml at sympatico.ca
Sun May 1 23:40:38 EST 2005


On Sun, May 1, 2005 5:45 am, Sean said:

> And Putty concludes, all is well shutting down normally.   It looks like
> it would be a one line change in Putty to get it to respond correctly.
>

Darren,

Thanks again for your help.  Patch to Putty stops the client window from
closing when Openssh sends a session failure message.

--- old/ssh.c    Sun May  1 09:27:47 2005
+++ new/ssh.c    Sun May  1 09:27:40 2005
@@ -5918,7 +5918,7 @@
        ssh2_pkt_addstring(s->pktout, "en");    /* language tag */
        ssh2_pkt_send_noqueue(ssh, s->pktout);
 #endif
-       ssh->close_expected = TRUE;
+       ssh->close_expected = ssh->exitcode == 254 ? FALSE : TRUE;
        ssh_closing((Plug)ssh, NULL, 0, 0);
     }
 }

Cheers,
Sean





More information about the openssh-unix-dev mailing list