projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Remove the call to RAND_load_file().
[tinc]
/
src
/
subnet.c
diff --git
a/src/subnet.c
b/src/subnet.c
index
ab18194
..
dc30b01
100644
(file)
--- a/
src/subnet.c
+++ b/
src/subnet.c
@@
-627,13
+627,8
@@
void subnet_update(node_t *owner, subnet_t *subnet, bool up) {
}
// Prepare the SUBNET and WEIGHT variables
- if(envp[5]) {
- free(envp[5]);
- }
-
- if(envp[6]) {
- free(envp[6]);
- }
+ free(envp[5]);
+ free(envp[6]);
xasprintf(&envp[5], "SUBNET=%s", netstr);
xasprintf(&envp[6], "WEIGHT=%s", weight);