diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-11-12 23:22:39 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-11-12 23:22:39 +0100 |
commit | 7599aeb4f3eb631fbe66817e992290dcf9122189 (patch) | |
tree | a706f782772943a78bcf3ca45326e0e6e1b4da40 /eurephiadm | |
parent | de7a3d88c78cdf400fcee78f71946da8b12ec74f (diff) | |
download | eurephia-7599aeb4f3eb631fbe66817e992290dcf9122189.tar.gz eurephia-7599aeb4f3eb631fbe66817e992290dcf9122189.tar.xz eurephia-7599aeb4f3eb631fbe66817e992290dcf9122189.zip |
BUGFIX: eurephiadm session key was truncated
The session key was only 65 bytes, instead of 128 bytes due to
wrong pointer calculation.
Diffstat (limited to 'eurephiadm')
-rw-r--r-- | eurephiadm/client_session.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eurephiadm/client_session.c b/eurephiadm/client_session.c index 22334c2..09ad57c 100644 --- a/eurephiadm/client_session.c +++ b/eurephiadm/client_session.c @@ -196,7 +196,7 @@ eurephiaSESSION *create_session(eurephiaCTX *ctx, const char *sesskey) { ptr = new_sess->sessionkey; for( i = 0; i < SHA512_HASH_SIZE; i++ ) { sprintf(ptr, "%02x", sha_res[i]); - ptr++; + ptr += 2; } memset(&sha, 0, sizeof(SHA512Context)); memset(&sha_res, 0, sizeof(sha_res)); |