summaryrefslogtreecommitdiff
path: root/src/common.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-09-08 10:23:04 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-09-08 10:23:04 +0200
commit451528dabd201d1e174f4a89f844ef4bdedc346b (patch)
treec076e9964fc6598176fb61a5911879838a20799a /src/common.c
parent59249922c5dbdee5667401e862d6ab247223cb0f (diff)
downloadgnutls-451528dabd201d1e174f4a89f844ef4bdedc346b.tar.gz
apps: corrected GNUTLS_PIN reading
Diffstat (limited to 'src/common.c')
-rw-r--r--src/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.c b/src/common.c
index 7f7ef675fb..b75a9ea784 100644
--- a/src/common.c
+++ b/src/common.c
@@ -1030,7 +1030,7 @@ pin_callback(void *user, int attempt, const char *token_url,
printf("requires %s PIN\n", desc);
password = getenv(env);
- if (env == NULL) /* compatibility */
+ if (password == NULL) /* compatibility */
password = getenv("GNUTLS_PIN");
if (password == NULL && (info == NULL || info->batch == 0)) {