From: Nikos Mavrogiannopoulos Date: Mon, 8 Sep 2014 08:23:04 +0000 (+0200) Subject: apps: corrected GNUTLS_PIN reading X-Git-Tag: gnutls_3_4_0~973 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=451528dabd201d1e174f4a89f844ef4bdedc346b;p=thirdparty%2Fgnutls.git apps: corrected GNUTLS_PIN reading --- 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)) {