diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-12 12:56:54 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-12 12:56:54 +0000 |
commit | c5c2121206bf094d18bff9d7835a01c39c0a8348 (patch) | |
tree | 1774222b6dbf907c5c3f0478955d92076a7e9a13 /src/peerinfo-tool | |
parent | c870112e1fe50c58fdfde2dfd5775a1d331f0995 (diff) |
-fix
Diffstat (limited to 'src/peerinfo-tool')
-rw-r--r-- | src/peerinfo-tool/gnunet-peerinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 3ca8b08620..03b628dcba 100644 --- a/src/peerinfo-tool/gnunet-peerinfo.c +++ b/src/peerinfo-tool/gnunet-peerinfo.c @@ -514,6 +514,8 @@ add_address_to_hello (void *cls, size_t max, void *buffer) ctx->ret = GNUNET_SYSERR; return 0; } + ctx->pos++; + memset (&expiration_time, 0, sizeof (expiration_time)); tname = strptime (ctx->pos, "%Y%m%d%H%M%S", &expiration_time); @@ -772,6 +774,7 @@ state_machine (void *cls, fprintf (stderr, _("Invalid URI `%s'\n"), put_uri); + GNUNET_free (put_uri); put_uri = NULL; return; } |