The destructor context given to the ID cache destructor callback was wrong
which caused odd crashes.
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2000 - 2007 Pekka Riikonen
+ Copyright (C) 2000 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
void *app_context)
{
if (cache->destructor)
void *app_context)
{
if (cache->destructor)
- cache->destructor(cache, entry, cache->destructor, app_context);
+ cache->destructor(cache, entry, cache->context, app_context);
memset(entry, 'F', sizeof(*entry));
silc_free(entry);
memset(entry, 'F', sizeof(*entry));
silc_free(entry);
Author: Pekka Riikonen <priikone@silcnet.org>
Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 2000 - 2007 Pekka Riikonen
+ Copyright (C) 2000 - 2008 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
- * SilcBool silc_idcache_del_by_context(SilcIDCache cache, void *context);
+ * SilcBool silc_idcache_del_by_context(SilcIDCache cache, void *context,
+ * void *app_context);