On Sat, 01 Mar 2008 22:39:47 +0100 Clemens Fruhwirth wrote: > ... > New Features: > * Add key-slot patch for luksAddkey courtesy of Marc MERLIN <marc@xxxxxxxxxxx> Piece of the old code was forgotten in logger() call, thanks for GCC warnings about uninitialized variables. Patch attached. -- Best regards, Nikolay Fetisov
Fix wrong usage of 'i' as a key slot number --- lib/setup.c.orig 2008-03-02 11:58:52 +0300 +++ lib/setup.c 2008-03-02 12:30:49 +0300 @@ -586,7 +586,7 @@ options->icb->log(CRYPT_LOG_ERROR,"No key available with this passphrase.\n"); r = -EPERM; goto out; } else - logger(options, CRYPT_LOG_NORMAL,"key slot %d unlocked.\n",i); + logger(options, CRYPT_LOG_NORMAL,"key slot %d unlocked.\n",r); safe_free(password);
Attachment:
signature.asc
Description: PGP signature