* Merged version 1.1.4 of zlib. Even if it not currently in use,
it's good not to have security holes here.
+ * Fixed a negative refcount situtuation for the config context.
+ Affected file is silcd/serverconfig.c.
+
Mon Apr 1 20:15:10 CEST 2002 Johnny Mnemonic <johnny@themnemonic.org>
* ROBOdoc documented lib/silcutil/silcutil.h.
/* alloc a config object */
config_new = silc_calloc(1, sizeof(*config_new));
+ config_new->refcount = 1;
if (!config_new)
return NULL;
/* Set default to configuration parameters */
silc_server_config_set_defaults(config_new);
- config_new->refcount = 1;
return config_new;
}
config->refcount++;
ref->config = config;
ref->ref_ptr = ref_ptr;
- SILC_LOG_DEBUG(("Referencing config [%p] refcnt %hu->%hu", config,
+ SILC_LOG_DEBUG(("Referencing config [%p] refcnt %d->%d", config,
config->refcount - 1, config->refcount));
}
}
void *tmp;
config->refcount--;
- SILC_LOG_DEBUG(("Unreferencing config [%p] refcnt %hu->%hu", config,
+ SILC_LOG_DEBUG(("Unreferencing config [%p] refcnt %d->%d", config,
config->refcount + 1, config->refcount));
if (config->refcount > 0)
return;