pkcs11-tool bug

fixed filling key type attr on writing object

pointer refers to local variable from destroyed stack frame

# /usr/local/bin/pkcs11-tool --module /usr/lib/opensc-pkcs11.so -w deckey.der -y privkey -d 45 -l -v
Using slot 1 with a present token (0x1)
Logging in to "Rutoken ECP (User PIN)".
Please enter User PIN: 
error: PKCS11 function C_CreateObject failed: rv = CKR_ATTRIBUTE_VALUE_INVALID (0x13)

Aborting.