From: Ezra Peisach Date: Fri, 30 Jun 2000 12:54:49 +0000 (+0000) Subject: * random_key.c (des_random_key): Add parentheses around assignment X-Git-Tag: krb5-1.3-alpha1~2062 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e6e8674167bd2758921ef8fed952a8efc8dd7e71;p=krb5.git * 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 --- diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index 0b26ead84..2fe9c33a2 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,8 @@ +Thu Jun 29 17:11:17 2000 Ezra Peisach + + * random_key.c (des_random_key): Add parentheses around assignment + used as truth value. + 2000-03-14 Ken Raeburn * 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 5fb92b779..128a012ed 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));