summaryrefslogtreecommitdiff
path: root/radsecproxy-hash.c
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordberg.se>2013-04-23 11:52:16 +0200
committerLinus Nordberg <linus@nordberg.se>2013-09-02 13:43:07 +0200
commitd22a79524568e9fb7095871c58f1faf4c710d65b (patch)
treec99f8f5e488cd2dcccd0591b183f45d7137206cb /radsecproxy-hash.c
parente205daa66decffa8480722118e33d31526de70b4 (diff)
Make radsecproxy-hash(1) not print the hash four times.
Bug found by Simon Lundström and jocar. Conflicts: radsecproxy-hash.c
Diffstat (limited to 'radsecproxy-hash.c')
-rw-r--r--radsecproxy-hash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy-hash.c b/radsecproxy-hash.c
index 48b3845..b3d8ec8 100644
--- a/radsecproxy-hash.c
+++ b/radsecproxy-hash.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 NORDUnet A/S
+ * Copyright (C) 2011,2013 NORDUnet A/S
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -36,7 +36,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;