mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-06 00:00:47 -04:00
pki: Stop prompting for password when entering empty string
This commit is contained in:
parent
1309cb7b1a
commit
f1e7b9b0d7
@ -182,7 +182,7 @@ static shared_key_t* cb(void *data, shared_key_type_t type,
|
||||
#ifdef HAVE_GETPASS
|
||||
secret = getpass(buf);
|
||||
#endif
|
||||
if (secret)
|
||||
if (secret && strlen(secret))
|
||||
{
|
||||
if (match_me)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user