summaryrefslogtreecommitdiff
path: root/lib/crypto.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@turtle.(none)>2008-04-26 14:16:23 +0300
committerNikos Mavrogiannopoulos <nmav@turtle.(none)>2008-04-26 14:16:23 +0300
commitdf724e494d0fd566265ebec70ce55a17b24acb56 (patch)
treed95e234489814b512d8d7bb6883a1834526f144a /lib/crypto.c
parentb5a10db461057c947fa50414c7dc58bb6c12a0f0 (diff)
downloadgnutls-df724e494d0fd566265ebec70ce55a17b24acb56.tar.gz
faster seek into the list.
Diffstat (limited to 'lib/crypto.c')
-rw-r--r--lib/crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/crypto.c b/lib/crypto.c
index 89bed4724b..00f2cff3dc 100644
--- a/lib/crypto.c
+++ b/lib/crypto.c
@@ -77,7 +77,6 @@ algo_list* last_cl = al;
cl->next = NULL;
last_cl->next = cl;
-
return 0;
}
@@ -88,7 +87,7 @@ cipher_list* cl;
/* look if there is any cipher with lowest priority. In that case do not add.
*/
- cl = al;
+ cl = al->next;
while( cl && cl->alg_data) {
if (cl->algorithm == algo) {
return cl->alg_data;