Make sendauth() work if the passed-in checksum pointer is NULL
authorTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 00:15:09 +0000 (00:15 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 00:15:09 +0000 (00:15 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2557 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/sendauth.c

index cb3180495ea85cab4ec4502af58c4135fa91c0db..5337e05429a003c7746f5d5f44842e1224f9aa18 100644 (file)
@@ -74,7 +74,6 @@ krb5_sendauth(/* IN */
        krb5_flags              kdc_options = krb5_kdc_default_options;
        krb5_octet              result;
        krb5_creds              creds;
-       krb5_checksum           checksum;
        krb5_error_code         retval = 0;
        krb5_authenticator      authent;
        krb5_data               inbuf, outbuf;
@@ -141,15 +140,6 @@ krb5_sendauth(/* IN */
                }
        }
 
-       /*
-        * If no checksum was provided, supply a zero checksum structure
-        */
-       
-       if (!checksump) {
-               memset((char *)&checksum, 0, sizeof(checksum));
-               checksump = &checksum;
-       }
-
        /*
         * Generate a random sequence number
         */