projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Double-quote nodes in graphviz network file
[tinc]
/
src
/
tincd.c
diff --git
a/src/tincd.c
b/src/tincd.c
index
9253d9f
..
7b882c7
100644
(file)
--- a/
src/tincd.c
+++ b/
src/tincd.c
@@
-562,25
+562,11
@@
static void make_names(void) {
}
static void free_names() {
}
static void free_names() {
- if(identname) {
- free(identname);
- }
-
- if(netname) {
- free(netname);
- }
-
- if(pidfilename) {
- free(pidfilename);
- }
-
- if(logfilename) {
- free(logfilename);
- }
-
- if(confbase) {
- free(confbase);
- }
+ free(identname);
+ free(netname);
+ free(pidfilename);
+ free(logfilename);
+ free(confbase);
}
static bool drop_privs() {
}
static bool drop_privs() {
@@
-699,13
+685,6
@@
int main(int argc, char **argv) {
init_configuration(&config_tree);
init_configuration(&config_tree);
- /* Slllluuuuuuurrrrp! */
-
- if(RAND_load_file("/dev/urandom", 1024) != 1024) {
- logger(LOG_ERR, "Error initializing RNG!");
- return 1;
- }
-
ENGINE_load_builtin_engines();
ENGINE_register_all_complete();
ENGINE_load_builtin_engines();
ENGINE_register_all_complete();