projects
/
libradsec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
65e6cdf
)
Make radsecproxy-hash(1) not print the hash four times.
author
Linus Nordberg
<linus@nordberg.se>
Tue, 23 Apr 2013 09:52:16 +0000
(11:52 +0200)
committer
Linus Nordberg
<linus@nordberg.se>
Tue, 23 Apr 2013 09:52:16 +0000
(11:52 +0200)
Bug found by Simon Lundström and jocar.
radsecproxy-hash.c
patch
|
blob
|
history
diff --git
a/radsecproxy-hash.c
b/radsecproxy-hash.c
index
e641767
..
b324df1
100644
(file)
--- a/
radsecproxy-hash.c
+++ b/
radsecproxy-hash.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2011, NORDUnet A/S */
+/* Copyright (c) 2011,
2013,
NORDUnet A/S */
/* See LICENSE for licensing information. */
#include <stdio.h>
@@
-31,7
+31,7
@@
main(int argc, char *argv[])
#if defined(READ_CONFIG)
char *config = NULL;
#endif
- uint8_t buf[
256
];
+ uint8_t buf[
64+1
];
char mac[80+1];
uint8_t *key = NULL;
enum { TYPE_HASH, TYPE_HMAC } type = TYPE_HASH;