* krshd.c: Don't set checksum_ignored to 1 if checksum_required is
authorTom Yu <tlyu@mit.edu>
Tue, 18 Nov 1997 02:13:34 +0000 (02:13 +0000)
committerTom Yu <tlyu@mit.edu>
Tue, 18 Nov 1997 02:13:34 +0000 (02:13 +0000)
0; also, if a krb5 client passes in a checksum, check it
regardless of whether checksum_required is true. [krb5-appl/500]

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10286 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/krshd.c

index a0972b2eb119bb25c4202a3c5398ccbfd1eb83ea..63e66c762342420eb3dd4176d860533e8307477b 100644 (file)
@@ -1,3 +1,9 @@
+Mon Nov 17 20:55:31 1997  Tom Yu  <tlyu@mit.edu>
+
+       * krshd.c: Don't set checksum_ignored to 1 if checksum_required is
+       0; also, if a krb5 client passes in a checksum, check it
+       regardless of whether checksum_required is true. [krb5-appl/500]
+
 Wed Nov 12 19:03:02 1997  Tom Yu  <tlyu@mit.edu>
 
        * forward.c (rd_and_store_for_creds): Don't do the chown.  Avoids
index ef8766d0bc8e95a38ec1f8b941f8b25ba37069bb..7e5573a692e72b4006b5910feb3853ff1291b175 100644 (file)
@@ -420,9 +420,6 @@ int main(argc, argv)
        syslog(LOG_WARNING , "setsockopt (SO_LINGER): %m");
 #endif
 
-    if (!checksum_required && !checksum_ignored)
-       checksum_ignored = 1;
-
     if (checksum_required&&checksum_ignored) {
        syslog(LOG_CRIT, "Checksums are required and ignored; these options are mutually exclusive--check the documentation.");
        fatal(fd, "Configuration error: mutually exclusive options specified");
@@ -1828,7 +1825,7 @@ recvauth(netf, peersin, valid_checksum)
                                                 &authenticator)))
       return status;
     
-    if (authenticator->checksum && checksum_required) {
+    if (authenticator->checksum && !checksum_ignored) {
        struct sockaddr_in adr;
        int adr_length = sizeof(adr);
        char * chksumbuf = (char *) malloc(strlen(cmdbuf)+strlen(locuser)+32);