diff options
author | Linus Nordberg <linus@nordberg.se> | 2012-03-19 04:57:19 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordberg.se> | 2012-03-19 04:57:19 +0100 |
commit | bb2135fea68b53b4e75795c7b1bd632ce4f0d459 (patch) | |
tree | 72b72782494c496e2f5b75178f404d1c4e805639 | |
parent | ce5489eec0a032aa98622c3dc0af1af7220a3ad4 (diff) | |
download | tor-bb2135fea68b53b4e75795c7b1bd632ce4f0d459.tar tor-bb2135fea68b53b4e75795c7b1bd632ce4f0d459.tar.gz |
Reorder initialisation of port_cfg to match order of members in struct.
-rw-r--r-- | src/or/config.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/config.c b/src/or/config.c index f9a335018..55fe61597 100644 --- a/src/or/config.c +++ b/src/or/config.c @@ -5768,13 +5768,13 @@ parse_port_config(smartlist_t *out, if (out && port) { port_cfg_t *cfg = tor_malloc_zero(sizeof(port_cfg_t)); - cfg->type = listener_type; - cfg->port = port; tor_addr_copy(&cfg->addr, &addr); - cfg->session_group = sessiongroup; + cfg->port = port; + cfg->type = listener_type; cfg->isolation_flags = isolation; - cfg->no_listen = no_listen; + cfg->session_group = sessiongroup; cfg->no_advertise = no_advertise; + cfg->no_listen = no_listen; cfg->all_addrs = all_addrs; cfg->ipv4_only = ipv4_only; cfg->ipv6_only = ipv6_only; |