diff options
author | Linus Nordberg <linus@nordberg.se> | 2013-04-23 11:52:16 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2013-04-23 11:52:16 +0200 |
commit | e2ec90a8f9e22a96f20d5eaf5483369853901d03 (patch) | |
tree | f9ed45f306d9c338aea2a442f190d4f242c7982a /radsecproxy-hash.c | |
parent | 65e6cdfb467d2f9e743a3a5b016b7863132da4b8 (diff) |
Make radsecproxy-hash(1) not print the hash four times.
Bug found by Simon Lundström and jocar.
Diffstat (limited to 'radsecproxy-hash.c')
-rw-r--r-- | radsecproxy-hash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy-hash.c b/radsecproxy-hash.c index e641767..b324df1 100644 --- 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; |