diff options
author | Ezra Peisach <epeisach@mit.edu> | 2000-06-30 12:54:49 +0000 |
---|---|---|
committer | Ezra Peisach <epeisach@mit.edu> | 2000-06-30 12:54:49 +0000 |
commit | e6e8674167bd2758921ef8fed952a8efc8dd7e71 (patch) | |
tree | 53ae766d9e55f0baa702174fdda275e7cca22b30 /src/lib/des425 | |
parent | 52fdba11c6c3c581fe4c10218d52ccbe5cf7d512 (diff) | |
download | krb5-e6e8674167bd2758921ef8fed952a8efc8dd7e71.zip krb5-e6e8674167bd2758921ef8fed952a8efc8dd7e71.tar.gz krb5-e6e8674167bd2758921ef8fed952a8efc8dd7e71.tar.bz2 |
* random_key.c (des_random_key): Add parentheses around assignment
used as truth value.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12475 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/des425')
-rw-r--r-- | src/lib/des425/ChangeLog | 5 | ||||
-rw-r--r-- | src/lib/des425/random_key.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index 0b26ead..2fe9c33 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -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. diff --git a/src/lib/des425/random_key.c b/src/lib/des425/random_key.c index 5fb92b7..128a012 100644 --- a/src/lib/des425/random_key.c +++ b/src/lib/des425/random_key.c @@ -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)); |