From: Nikos Mavrogiannopoulos Date: Tue, 5 Apr 2011 21:53:40 +0000 (+0200) Subject: Initialize tinfo using the initially available information. X-Git-Tag: gnutls_2_99_0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c0b2d5685cec15827c47ff38f3e75a56dec846e;p=thirdparty%2Fgnutls.git Initialize tinfo using the initially available information. --- diff --git a/lib/pkcs11.c b/lib/pkcs11.c index 3b7bdee20a..2285ce8ba0 100644 --- a/lib/pkcs11.c +++ b/lib/pkcs11.c @@ -2093,6 +2093,8 @@ pkcs11_login (pakchois_session_t * pks, const struct token_info *info, int so) char pin[GNUTLS_PKCS11_MAX_PIN_LEN]; unsigned int flags; + memcpy(&tinfo, &info->tinfo, sizeof(tinfo)); + /* If login has been attempted once already, check the token * status again, the flags might change. */ if (attempt)