From: Nikos Mavrogiannopoulos Date: Fri, 25 Apr 2008 07:59:09 +0000 (+0300) Subject: corrected segmentation fault on registering ciphers. X-Git-Tag: gnutls_2_3_8~28 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f574b6a34ed0bef043eb0e13720fee27ccb8d4b;p=thirdparty%2Fgnutls.git corrected segmentation fault on registering ciphers. --- diff --git a/lib/crypto.c b/lib/crypto.c index 852cb2ffdf..9f0a3020ce 100644 --- a/lib/crypto.c +++ b/lib/crypto.c @@ -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. */