projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates.
[silc.git]
/
apps
/
silcd
/
silcd.c
diff --git
a/apps/silcd/silcd.c
b/apps/silcd/silcd.c
index a935b9e3a6e10d00378317ae91958f3a175a088f..c2318925f06e52c9596e32555e6f5360bc14199b 100644
(file)
--- a/
apps/silcd/silcd.c
+++ b/
apps/silcd/silcd.c
@@
-268,11
+268,9
@@
int main(int argc, char **argv)
goto fail;
/* Read configuration files */
goto fail;
/* Read configuration files */
- silcd->config = silc_server_config_alloc(silcd_config_file);
+ silcd->config = silc_server_config_alloc(silcd
, silcd
_config_file);
if (silcd->config == NULL)
goto fail;
if (silcd->config == NULL)
goto fail;
- silc_server_config_ref(&silcd->config_ref, silcd->config,
- (void *)silcd->config);
silcd->config_file = silcd_config_file;
/* Check for another silcd running */
silcd->config_file = silcd_config_file;
/* Check for another silcd running */
@@
-318,6
+316,7
@@
int main(int argc, char **argv)
/* Stop the server and free it. */
silc_server_stop(silcd);
silc_server_free(silcd);
/* Stop the server and free it. */
silc_server_stop(silcd);
silc_server_free(silcd);
+ silc_server_config_destroy(silcd->config);
/* Flush the logging system */
silc_log_flush_all();
/* Flush the logging system */
silc_log_flush_all();