pki: Stop prompting for password when entering empty string
This commit is contained in:
+1
-1
@@ -182,7 +182,7 @@ static shared_key_t* cb(void *data, shared_key_type_t type,
|
|||||||
#ifdef HAVE_GETPASS
|
#ifdef HAVE_GETPASS
|
||||||
secret = getpass(buf);
|
secret = getpass(buf);
|
||||||
#endif
|
#endif
|
||||||
if (secret)
|
if (secret && strlen(secret))
|
||||||
{
|
{
|
||||||
if (match_me)
|
if (match_me)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user