updates.
[crypto.git] / lib / silccrypt / silccipher.c
index 0c8b6c77b18a5197aba5daaf228747917ae6720f..8162abd9f046be88a90bf7bac1182a8b57434fc9 100644 (file)
@@ -200,7 +200,7 @@ int silc_cipher_alloc(const unsigned char *name, SilcCipher *new_cipher)
       c = c->next;
     }
 
-    if (!c || !c->cipher->context_len)
+    if (!c)
       goto check_builtin;
 
     /* Set the pointers */
@@ -222,7 +222,6 @@ int silc_cipher_alloc(const unsigned char *name, SilcCipher *new_cipher)
 
   if (silc_cipher_builtin_list[i].name == NULL) {
     silc_free(*new_cipher);
-    *new_cipher = NULL;
     return FALSE;
   }