+ SilcServerConfig config = ref->config;
+
+ if (ref->ref_ptr) {
+ config->refcount--;
+ SILC_LOG_DEBUG(("Unreferencing config [%p] refcnt %hu->%hu", config,
+ config->refcount + 1, config->refcount));
+ if (!config->refcount)
+ silc_server_config_destroy(config);
+ ref->ref_ptr = NULL;
+ }