mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-26 21:13:11 +01:00
Fix mixed up arguments passed to a locally defined err(int, char *)
function. Approved by: markm (mentor) Submitted by: till toenges <tt@mail.isis.de> PR: bin/48963
This commit is contained in:
parent
d7f15c948f
commit
a5c21394e3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111963
@ -102,22 +102,22 @@ static const char rcsid[] =
|
||||
#ifdef FASTWAY
|
||||
#define DES_KEY(buf) \
|
||||
if (des_setkey(buf)) \
|
||||
err("des_setkey", 0);
|
||||
err(0, "des_setkey");
|
||||
#define DES_XFORM(buf) \
|
||||
if (des_cipher(buf, buf, 0L, (inverse ? -1 : 1))) \
|
||||
err("des_cipher", 0);
|
||||
err(0, "des_cipher");
|
||||
#else
|
||||
#define DES_KEY(buf) { \
|
||||
char bits1[64]; /* bits of key */ \
|
||||
expand(buf, bits1); \
|
||||
if (setkey(bits1)) \
|
||||
err("setkey", 0); \
|
||||
err(0, "setkey"); \
|
||||
}
|
||||
#define DES_XFORM(buf) { \
|
||||
char bits1[64]; /* bits of message */ \
|
||||
expand(buf, bits1); \
|
||||
if (encrypt(bits1, inverse)) \
|
||||
err("encrypt", 0); \
|
||||
err(0, "encrypt"); \
|
||||
compress(bits1, buf); \
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user