Changeset 110


Ignore:
Timestamp:
10/24/08 08:39:04 (3 years ago)
Author:
ludovic.rousseau
Message:

get_pin(): do not dereference mycb->password if mycb is NULL

Fix ticket #11

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/engine_pkcs11.c

    r105 r110  
    115115 
    116116        /* pin in the call back data, copy and use */ 
    117         if (mycb->password) { 
     117        if (mycb != NULL && mycb->password) { 
    118118                pin = (char *)calloc(MAX_PIN_LENGTH, sizeof(char)); 
    119119                if (!pin) 
Note: See TracChangeset for help on using the changeset viewer.