]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
corrected segmentation fault on registering ciphers.
authorNikos Mavrogiannopoulos <nmav@turtle.(none)>
Fri, 25 Apr 2008 07:59:09 +0000 (10:59 +0300)
committerNikos Mavrogiannopoulos <nmav@turtle.(none)>
Fri, 25 Apr 2008 07:59:09 +0000 (10:59 +0300)
lib/crypto.c

index 852cb2ffdffeb07784ce6856f0365112fea34151..9f0a3020ce3bb112b9e84a1e93c1c74ec6b9a013 100644 (file)
@@ -42,7 +42,7 @@ typedef struct algo_list {
 static int _algo_register( algo_list* al, int algorithm, int priority, void* s)
 {
 algo_list* cl;
-algo_list* last_cl = NULL;
+algo_list* last_cl = al;
 
   /* look if there is any cipher with lowest priority. In that case do not add.
    */