From: Nikos Mavrogiannopoulos Date: Mon, 23 May 2011 10:54:16 +0000 (+0200) Subject: corrected bug in ciphersuite name searching. X-Git-Tag: gnutls_2_99_2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19e53ecaea095e0d4e6b3531a0e4a6d2f28e35fb;p=thirdparty%2Fgnutls.git corrected bug in ciphersuite name searching. --- diff --git a/lib/algorithms/ciphersuites.c b/lib/algorithms/ciphersuites.c index 2f775bca0e..09b115dd86 100644 --- a/lib/algorithms/ciphersuites.c +++ b/lib/algorithms/ciphersuites.c @@ -662,14 +662,14 @@ gnutls_cipher_suite_get_name (gnutls_kx_algorithm_t kx_algorithm, { const char *ret = NULL; - /* avoid prefix */ GNUTLS_CIPHER_SUITE_LOOP ( - if (kx_algorithm == p->kx_algorithm && - cipher_algorithm == p->block_algorithm && mac_algorithm == p->mac_algorithm) - { - ret = p->name + sizeof ("GNUTLS_") - 1); - break; - } + if (kx_algorithm == p->kx_algorithm && + cipher_algorithm == p->block_algorithm && mac_algorithm == p->mac_algorithm) + { + ret = p->name + sizeof ("GNUTLS_") - 1; + break; + } + ); return ret; }