* random_key.c (des_random_key): Add parentheses around assignment
authorEzra Peisach <epeisach@mit.edu>
Fri, 30 Jun 2000 12:54:49 +0000 (12:54 +0000)
committerEzra Peisach <epeisach@mit.edu>
Fri, 30 Jun 2000 12:54:49 +0000 (12:54 +0000)
        used as truth value.

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

src/lib/des425/ChangeLog
src/lib/des425/random_key.c

index 0b26ead84a9b7f82ee4a7b636dab09e90a713853..2fe9c33a25d5b8c6fcb62fc90f821837255bb808 100644 (file)
@@ -1,3 +1,8 @@
+Thu Jun 29 17:11:17 2000  Ezra Peisach  <epeisach@mit.edu>
+
+       * random_key.c (des_random_key): Add parentheses around assignment
+       used as truth value.
+
 2000-03-14  Ken Raeburn  <raeburn@mit.edu>
 
        * read_passwd.c (des_read_pw_string): Make ointrfunc volatile.
index 5fb92b779c297bdc9e32b6a348d39b7498bcfaaf..128a012eddceb0c6cdce68eb5ac42cb6262d7a55 100644 (file)
@@ -62,8 +62,8 @@ des_random_key(key)
     krb5_keyblock      keyblock;
     krb5_error_code    kret;
 
-    if (kret = krb5_c_make_random_key(/* XXX */ 0, ENCTYPE_DES_CBC_CRC,
-                                     &keyblock))
+    if ((kret = krb5_c_make_random_key(/* XXX */ 0, ENCTYPE_DES_CBC_CRC,
+                                     &keyblock)))
        return(kret);
 
     memcpy(key, keyblock.contents, sizeof(mit_des_cblock));