summaryrefslogtreecommitdiffstats
path: root/eurephiadm
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-12-09 10:22:25 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-12-09 10:22:25 +0100
commit02e01e3cf3d83e286be10c97dd23b9c6dce8f182 (patch)
tree22e20a1876d58ac28f3a614e9291c1286ee51d06 /eurephiadm
parent226edd9012e297578cb8db058f25f880aea8afc9 (diff)
downloadeurephia-02e01e3cf3d83e286be10c97dd23b9c6dce8f182.tar.gz
eurephia-02e01e3cf3d83e286be10c97dd23b9c6dce8f182.tar.xz
eurephia-02e01e3cf3d83e286be10c97dd23b9c6dce8f182.zip
BUGFIX: Fixed memset(...) going outside its boundaries
Diffstat (limited to 'eurephiadm')
-rw-r--r--eurephiadm/client_session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eurephiadm/client_session.c b/eurephiadm/client_session.c
index bfc27a7..fa3689d 100644
--- a/eurephiadm/client_session.c
+++ b/eurephiadm/client_session.c
@@ -139,7 +139,7 @@ eurephiaSESSION *create_session(eurephiaCTX *ctx, const char *sesskey) {
}
memset(&sha, 0, sizeof(SHA512Context));
- memset(&sha_res, 0, sizeof(sha_res)+2);
+ memset(&sha_res, 0, SHA512_HASH_SIZE+2);
free_nullsafe(new_sess->sessionkey);
new_sess->sessionkey = (char *) malloc((SHA512_HASH_SIZE*2) + 3);