Diff

Differences From Artifact [c16f533241]:

To Artifact [b61b0b2a2f]:


  5178   5178   			cackey_sessions[hSession].sign_bufused = start_sign_bufused;
  5179   5179   
  5180   5180   			return(sign_ret);
  5181   5181   		}
  5182   5182   
  5183   5183   		CACKEY_DEBUG_PRINTF("Error.  SignFinal() returned failure (rv = %lu).", (unsigned long) sign_ret);
  5184   5184   
         5185  +		return(sign_ret);
         5186  +	}
         5187  +
         5188  +	if (pSignature == NULL) {
         5189  +		CACKEY_DEBUG_PRINTF("pSignature specified as NULL, undoing C_SignUpdate()", (unsigned long) sign_ret);
         5190  +
         5191  +		cackey_sessions[hSession].sign_bufused = start_sign_bufused;
         5192  +
  5185   5193   		return(sign_ret);
  5186   5194   	}
  5187   5195   
  5188   5196   	CACKEY_DEBUG_PRINTF("Returning CKR_OK (%i)", CKR_OK);
  5189   5197   
  5190   5198   	return(CKR_OK);
  5191   5199   }