aboutsummaryrefslogtreecommitdiff
path: root/src/hostlist/gnunet-daemon-hostlist.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-28 16:45:16 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-28 16:45:16 +0000
commitd77a90df90775e88dd10c8e4963132d33cd4f3ef (patch)
tree8993d58e2322a2a9d2422be8d077a27b668312f9 /src/hostlist/gnunet-daemon-hostlist.c
parent677ef8f7fad539bf9ba744a32716ebdfc51a5a42 (diff)
downloadgnunet-d77a90df90775e88dd10c8e4963132d33cd4f3ef.tar.gz
gnunet-d77a90df90775e88dd10c8e4963132d33cd4f3ef.zip
-fixing use of uninitialized variable, some code cleanup, fixing memory leak on error path
Diffstat (limited to 'src/hostlist/gnunet-daemon-hostlist.c')
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index b0fb03e29..b10f124d4 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -137,7 +137,12 @@ core_init (void *cls, struct GNUNET_CORE_Handle *server,
137/** 137/**
138 * Core handler for p2p hostlist advertisements 138 * Core handler for p2p hostlist advertisements
139 * 139 *
140 * @param cls closure
141 * @param peer identity of the sender
142 * @param message advertisement message we got
143 * @param atsi performance information
140 * @param atsi_count number of records in 'atsi' 144 * @param atsi_count number of records in 'atsi'
145 * @return GNUNET_OK on success
141 */ 146 */
142static int 147static int
143advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer, 148advertisement_handler (void *cls, const struct GNUNET_PeerIdentity *peer,