Initialize outoging->config_tree
This commit is contained in:
parent
dbddbc2dd7
commit
3b3bdf72d4
1 changed files with 6 additions and 3 deletions
|
@ -605,12 +605,15 @@ void setup_outgoing_connection(outgoing_t *outgoing) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!outgoing->config_tree) {
|
||||||
|
init_configuration(&outgoing->config_tree);
|
||||||
|
read_host_config(outgoing->config_tree, outgoing->name);
|
||||||
|
}
|
||||||
|
|
||||||
// Prefer the address discovered via SLPD
|
// Prefer the address discovered via SLPD
|
||||||
if (slpdinterval && n->slpd_address)
|
if (slpdinterval && n->slpd_address)
|
||||||
outgoing->cfg = n->slpd_address;
|
outgoing->cfg = n->slpd_address;
|
||||||
else if (!outgoing->config_tree) {
|
else {
|
||||||
init_configuration(&outgoing->config_tree);
|
|
||||||
read_host_config(outgoing->config_tree, outgoing->name);
|
|
||||||
char *address, *port;
|
char *address, *port;
|
||||||
|
|
||||||
if(!get_config_string(lookup_config(outgoing->config_tree, "Port"), &port))
|
if(!get_config_string(lookup_config(outgoing->config_tree, "Port"), &port))
|
||||||
|
|
Loading…
Reference in a new issue