diff options
author | David Sommerseth <dazo@users.sourceforge.net> | 2009-01-03 22:09:51 +0100 |
---|---|---|
committer | David Sommerseth <dazo@users.sourceforge.net> | 2009-01-03 22:09:51 +0100 |
commit | 696b476568263ab6158ce38350c27a6ff6e732ca (patch) | |
tree | b9c02233707113941a23c79e39ce3939e491354b /plugin | |
parent | 8a0b87ab7e99af1700aa80cb54373b68864eb0d4 (diff) | |
download | eurephia-696b476568263ab6158ce38350c27a6ff6e732ca.tar.gz eurephia-696b476568263ab6158ce38350c27a6ff6e732ca.tar.xz eurephia-696b476568263ab6158ce38350c27a6ff6e732ca.zip |
BUGFIX: Fixed unintended truncation of the session key and session seed values
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/eurephiadb_session.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/eurephiadb_session.c b/plugin/eurephiadb_session.c index 8ae338c..58e93db 100644 --- a/plugin/eurephiadb_session.c +++ b/plugin/eurephiadb_session.c @@ -103,7 +103,7 @@ eurephiaSESSION *eDBopen_session_seed(eurephiaCTX *ctx, const char *digest, 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)); @@ -180,7 +180,7 @@ eurephiaSESSION *eDBopen_session_seed(eurephiaCTX *ctx, const char *digest, ptr = new_session->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)); |