Fix minor error in previous commit that broke v4 salts
authorSam Hartman <hartmans@mit.edu>
Tue, 13 May 2003 17:56:20 +0000 (17:56 +0000)
committerSam Hartman <hartmans@mit.edu>
Tue, 13 May 2003 17:56:20 +0000 (17:56 +0000)
Ticket: 1470
Tags: pullup

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

src/lib/krb5/krb/preauth2.c

index 3dadabc9786a8350e5938d9bff4fd4389e1993db..cdce093b8d9148c3855fb813011e6349ff0edf7d 100644 (file)
@@ -930,7 +930,7 @@ krb5_do_preauth(krb5_context context,
                scratch.data = (char *) etype_info[l]->salt;
                scratch.length = etype_info[l]->length;
                krb5_free_data_contents(context, salt);
-               if (scratch.length = KRB5_ETYPE_NO_SALT) 
+               if (scratch.length == KRB5_ETYPE_NO_SALT) 
                  salt->data = NULL;
                else
                    if ((ret = krb5int_copy_data_contents( context, &scratch, salt)) != 0)