@@ -26,10 +26,10 @@ int find_cipher_any(const char *name, int blocklen, int keylen)
{
int x;
- LTC_ARGCHK(name != NULL);
-
- x = find_cipher(name);
- if (x != -1) return x;
+ if(name != NULL) {
+ x = find_cipher(name);
+ if (x != -1) return x;
+ }
LTC_MUTEX_LOCK(<c_cipher_mutex);
for (x = 0; x < TAB_SIZE; x++) {