summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>1998-08-07 15:47:38 +0000
committerTom Yu <tlyu@mit.edu>1998-08-07 15:47:38 +0000
commitb112bf188c2fba2979896df0007cb872f75fb3ba (patch)
tree9891c33b6862aa48b6acc686b1f3c199bc127215 /src
parent2da84eea273527e7f361196da054ae611ea256b5 (diff)
downloadkrb5-b112bf188c2fba2979896df0007cb872f75fb3ba.tar.gz
krb5-b112bf188c2fba2979896df0007cb872f75fb3ba.tar.xz
krb5-b112bf188c2fba2979896df0007cb872f75fb3ba.zip
* ftp.c (getreply): Restore proper setting of safe. This variable
was previously being set to the value of code rather than to the boolean expression (code == 631), which it had been previously. The bug resulted in all replies from the server being parsed as krb_safe messages even when they were krb_priv messages. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10788 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/appl/gssftp/ftp/ChangeLog8
-rw-r--r--src/appl/gssftp/ftp/ftp.c2
2 files changed, 9 insertions, 1 deletions
diff --git a/src/appl/gssftp/ftp/ChangeLog b/src/appl/gssftp/ftp/ChangeLog
index 2bad1481d..473c9ad45 100644
--- a/src/appl/gssftp/ftp/ChangeLog
+++ b/src/appl/gssftp/ftp/ChangeLog
@@ -1,3 +1,11 @@
+Fri Aug 7 11:45:17 1998 Tom Yu <tlyu@mit.edu>
+
+ * ftp.c (getreply): Restore proper setting of safe. This variable
+ was previously being set to the value of code rather than to the
+ boolean expression (code == 631), which it had been previously.
+ The bug resulted in all replies from the server being parsed as
+ krb_safe messages even when they were krb_priv messages.
+
1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
* radix.c (argv): POSIX states that getopt returns -1 when it
diff --git a/src/appl/gssftp/ftp/ftp.c b/src/appl/gssftp/ftp/ftp.c
index 2fbe8e468..85e01b5dd 100644
--- a/src/appl/gssftp/ftp/ftp.c
+++ b/src/appl/gssftp/ftp/ftp.c
@@ -597,7 +597,7 @@ getreply(expecteof)
if (code != 631 && code != 632 && code != 633) {
printf("Unknown reply: %d %s\n", code, obuf);
n = '5';
- } else safe = code;
+ } else safe = (code == 631);
if (obuf[0]) /* if there is a string to decode */
if (!auth_type) {
printf("Cannot decode reply:\n%d %s\n", code, obuf);