diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-06-23 11:42:13 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-06-23 11:42:13 +0000 |
commit | 3452b7bd421ab861324b1c356b05acb24a0ed9f3 (patch) | |
tree | 2048e772412692052f383e3dbd7830738be47947 /src | |
parent | 8e7b3d117600e84a4625149204e8d6e1d6472946 (diff) | |
download | gnunet-3452b7bd421ab861324b1c356b05acb24a0ed9f3.tar.gz gnunet-3452b7bd421ab861324b1c356b05acb24a0ed9f3.zip |
-fix uninit
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index e9d6b54d4..68371703f 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -1566,6 +1566,7 @@ create_session (struct Plugin *plugin, | |||
1566 | struct Session *s; | 1566 | struct Session *s; |
1567 | 1567 | ||
1568 | s = GNUNET_new (struct Session); | 1568 | s = GNUNET_new (struct Session); |
1569 | s->plugin = plugin; | ||
1569 | s->address = GNUNET_HELLO_address_copy (address); | 1570 | s->address = GNUNET_HELLO_address_copy (address); |
1570 | s->target = address->peer; | 1571 | s->target = address->peer; |
1571 | s->last_expected_ack_delay = GNUNET_TIME_relative_multiply ( | 1572 | s->last_expected_ack_delay = GNUNET_TIME_relative_multiply ( |
@@ -2061,9 +2062,10 @@ udp_plugin_send (void *cls, | |||
2061 | GNUNET_break(0); | 2062 | GNUNET_break(0); |
2062 | return GNUNET_SYSERR; | 2063 | return GNUNET_SYSERR; |
2063 | } | 2064 | } |
2064 | if (GNUNET_YES | 2065 | if (GNUNET_YES != |
2065 | != GNUNET_CONTAINER_multipeermap_contains_value (plugin->sessions, | 2066 | GNUNET_CONTAINER_multipeermap_contains_value (plugin->sessions, |
2066 | &s->target, s)) | 2067 | &s->target, |
2068 | s)) | ||
2067 | { | 2069 | { |
2068 | GNUNET_break(0); | 2070 | GNUNET_break(0); |
2069 | return GNUNET_SYSERR; | 2071 | return GNUNET_SYSERR; |