diff --git a/sxt/ciphers.c b/sxt/ciphers.c index 40d217d..9a8e641 100644 --- a/sxt/ciphers.c +++ b/sxt/ciphers.c @@ -73,7 +73,7 @@ sxt_cipher_t *sxt_cipher_get(const char *name) list_for_each_safe(&cipher_listhead, iter, siter) { entry = list_entry(iter, struct cipher_tbl, node); sc = entry->cipher; - if(!strcmp(sxt_cipher_getname(sc), name)) return sc; + if(!strcmp(sxt_cipher_getname(sc), name)) break; else sc = NULL; }