From 7e3eea0076c7c874cfa802a68af39c1db35b8d70 Mon Sep 17 00:00:00 2001 From: mhogomchungu Date: Fri, 29 Jan 2021 13:42:50 +0300 Subject: [PATCH] This commit marks the release point of version 4.7.2 --- zuluCrypt-cli/bin/add_key.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/zuluCrypt-cli/bin/add_key.c b/zuluCrypt-cli/bin/add_key.c index b92a41326..b008c5ad5 100644 --- a/zuluCrypt-cli/bin/add_key.c +++ b/zuluCrypt-cli/bin/add_key.c @@ -428,7 +428,11 @@ int zuluCryptEXEAddKey( const struct_opts * opts,uid_t uid ) len3 = StringLength( *slots ) ; - if( len3 > 0 && ( size_t )slot_number < len3 ){ + if( slot_number == - 1 ){ + + status = zuluCryptAddKey_0( device,key1,len1,key2,len2,slot_number ) ; + + }else if( len3 > 0 && ( size_t )slot_number < len3 ){ if( StringContent( *slots )[ slot_number ] == '0' ){