From 0509cf4abeccac71d4a88f194d2bf5d2a904fb90 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Sun, 26 Jun 2016 16:46:44 +0300 Subject: [PATCH] sxt: ciphers bugfix; --- sxt/ciphers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }