[Pkg-nagios-changes] [SCM] Debian packaging for mod gearman. branch, master, updated. f5edd3e88aa2138dcf6d044c835fbd0ada944168

Sven Nierlein sven at nierlein.org
Fri Feb 11 11:18:19 UTC 2011


The following commit has been merged in the master branch:
commit bdc3892db83d460c5e8c0f45ae9c3a531863244c
Author: Sven Nierlein <sven at nierlein.org>
Date:   Mon Jan 31 08:38:31 2011 +0100

    fixed encryption when data is a exact multiple auf blocksize

diff --git a/common/crypt.c b/common/crypt.c
index 0b51220..3b3ddc9 100644
--- a/common/crypt.c
+++ b/common/crypt.c
@@ -60,6 +60,9 @@ int mod_gm_aes_encrypt(unsigned char ** encrypted, char * text) {
     nrounds   = rijndaelSetupEncrypt(rk, key, KEYBITS);
     size      = strlen(text);
     totalsize = size + BLOCKSIZE-size%BLOCKSIZE;
+    if(size%BLOCKSIZE == 0) {
+        size += BLOCKSIZE;
+    }
     enc       = (unsigned char *) malloc(sizeof(unsigned char)*totalsize);
     while(size > 0) {
         unsigned char plaintext[BLOCKSIZE];

-- 
Debian packaging for mod gearman.



More information about the Pkg-nagios-changes mailing list