]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Initialize tinfo using the initially available information.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 5 Apr 2011 21:53:40 +0000 (23:53 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 5 Apr 2011 21:53:40 +0000 (23:53 +0200)
lib/pkcs11.c

index 3b7bdee20a2bbe831c2cb7e7b5efc0e96ca56057..2285ce8ba063ce9b599ebfb9e267d076f47c4a08 100644 (file)
@@ -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)