]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
corrected bug in ciphersuite name searching.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 23 May 2011 10:54:16 +0000 (12:54 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 23 May 2011 10:54:16 +0000 (12:54 +0200)
lib/algorithms/ciphersuites.c

index 2f775bca0e7dcd8ff3bb3520e2ce0b378db471cc..09b115dd86618c31377d1244ac4aa06505f99d7a 100644 (file)
@@ -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;
 }