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.

Conflicts:
	radsecproxy-hash.c
  • Loading branch information
Linus Nordberg committed Sep 2, 2013
1 parent e205daa commit d22a795
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,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
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d22a795

Please sign in to comment.