From: Christian Grothoff Date: Mon, 12 Mar 2012 12:56:54 +0000 (+0000) Subject: -fix X-Git-Tag: initial-import-from-subversion-38251~14284 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c5c2121206bf094d18bff9d7835a01c39c0a8348;p=oweals%2Fgnunet.git -fix --- diff --git a/src/peerinfo-tool/gnunet-peerinfo.c b/src/peerinfo-tool/gnunet-peerinfo.c index 3ca8b0862..03b628dcb 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; }