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
+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
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);