mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-07 00:01:49 -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
|
#ifdef HAVE_GETPASS
|
||||||
secret = getpass(buf);
|
secret = getpass(buf);
|
||||||
#endif
|
#endif
|
||||||
if (secret)
|
if (secret && strlen(secret))
|
||||||
{
|
{
|
||||||
if (match_me)
|
if (match_me)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user