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' ){