diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-19 17:49:19 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-19 17:49:19 +0000 |
commit | 7f1311dcfcaaa944c10aadf8618d47b15bb1a450 (patch) | |
tree | 9ba9e0530837409ec01b8f57c1fd81fc0458b128 | |
parent | 3ffb89c725b34356c961bb827b5f83002d083191 (diff) | |
download | gnunet-7f1311dcfcaaa944c10aadf8618d47b15bb1a450.tar.gz gnunet-7f1311dcfcaaa944c10aadf8618d47b15bb1a450.zip |
-fixing #2084
-rw-r--r-- | src/exit/gnunet-daemon-exit.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c index a2b6d9c8a..b4edcad91 100644 --- a/src/exit/gnunet-daemon-exit.c +++ b/src/exit/gnunet-daemon-exit.c | |||
@@ -970,9 +970,14 @@ setup_state_record (struct TunnelState *state) | |||
970 | /* generate fresh, unique address */ | 970 | /* generate fresh, unique address */ |
971 | do | 971 | do |
972 | { | 972 | { |
973 | setup_fresh_address (state->serv->address.af, | 973 | if (NULL == state->serv) |
974 | state->serv->address.proto, | 974 | setup_fresh_address (state->ri.remote_address.af, |
975 | &state->ri.local_address); | 975 | state->ri.remote_address.proto, |
976 | &state->ri.local_address); | ||
977 | else | ||
978 | setup_fresh_address (state->serv->address.af, | ||
979 | state->serv->address.proto, | ||
980 | &state->ri.local_address); | ||
976 | } while (NULL != get_redirect_state (state->ri.remote_address.af, | 981 | } while (NULL != get_redirect_state (state->ri.remote_address.af, |
977 | state->ri.remote_address.proto, | 982 | state->ri.remote_address.proto, |
978 | &state->ri.remote_address.address, | 983 | &state->ri.remote_address.address, |