diff --git a/appl/ftp/ftp/cmds.c b/appl/ftp/ftp/cmds.c index 443d866ad..3981cdeeb 100644 --- a/appl/ftp/ftp/cmds.c +++ b/appl/ftp/ftp/cmds.c @@ -1457,6 +1457,7 @@ disconnect(int argc, char **argv) } cout = NULL; connected = 0; + krb4_quit(); data = -1; if (!proxy) { macnum = 0; diff --git a/appl/ftp/ftp/krb4.c b/appl/ftp/ftp/krb4.c index 1a56150f7..c13719cac 100644 --- a/appl/ftp/ftp/krb4.c +++ b/appl/ftp/ftp/krb4.c @@ -420,6 +420,12 @@ do_klogin(char *host) return 0; } +void +krb4_quit(void) +{ + auth_complete = 0; +} + int krb4_write_enc(FILE *F, char *fmt, va_list ap) { int len; diff --git a/appl/ftp/ftp/krb4.h b/appl/ftp/ftp/krb4.h index bd6fcfb2b..a0f3e35db 100644 --- a/appl/ftp/ftp/krb4.h +++ b/appl/ftp/ftp/krb4.h @@ -9,4 +9,6 @@ void sec_prot(int, char**); void kauth(int, char **); +void krb4_quit(void); + #endif /* __KRB4_H__ */