Changeset 43

Show
Ignore:
Timestamp:
02/12/06 12:48:39 (3 years ago)
Author:
martin
Message:

Fix tokend score fetching.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/opensc.tokend/Tokend-11/OpenSC/OpenSCToken.cpp

    r40 r43  
    7777{ 
    7878        otdLog("In OpenSCToken::changePIN(%d)\n", pinNum); 
    79         int r; 
    8079        if (pinNum != 1) 
    8180                CssmError::throwMe(CSSM_ERRCODE_SAMPLE_VALUE_NOT_SUPPORTED); 
     
    237236                                        // get the score 
    238237                                        scconf_block *conf_block = NULL; 
    239                                         conf_block = sc_get_conf_block(mScCtx, "framework", "tokend", 1); 
    240                                         if (conf_block) { 
     238                                        conf_block = sc_get_conf_block(mScCtx, "framework", "tokend", 0); 
     239                                        if (conf_block != NULL) { 
    241240                                                score = scconf_get_int(conf_block, "score", 50); 
    242241                                        } else {