]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
apps: corrected GNUTLS_PIN reading
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 8 Sep 2014 08:23:04 +0000 (10:23 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 8 Sep 2014 08:23:04 +0000 (10:23 +0200)
src/common.c

index 7f7ef675fbd7a70cf37ff4f676600e23d43848c1..b75a9ea784ae085acff4255ffc17412b5aa5928a 100644 (file)
@@ -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)) {