Skip to content

Commit

Permalink
Make radsecproxy-hash(1) not print the hash four times.
Browse files Browse the repository at this point in the history
Bug found by Simon Lundström and jocar.
  • Loading branch information
Linus Nordberg committed Apr 23, 2013
1 parent 65e6cdf commit e2ec90a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radsecproxy-hash.c
Original file line number Diff line number Diff line change
@@ -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>
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e2ec90a

Please sign in to comment.