diff options
Diffstat (limited to 'lib/x509')
-rw-r--r-- | lib/x509/privkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/privkey.c b/lib/x509/privkey.c index 4d861b2456..2b91e70c5c 100644 --- a/lib/x509/privkey.c +++ b/lib/x509/privkey.c @@ -601,7 +601,7 @@ gnutls_x509_privkey_import2 (gnutls_x509_privkey_t key, ret = gnutls_x509_privkey_import_pkcs8(key, data, format, password, flags); if (ret < 0) { - if (format == GNUTLS_X509_FMT_PEM && password != NULL) + if (format == GNUTLS_X509_FMT_PEM) { int err; err = gnutls_x509_privkey_import_openssl(key, data, password); |