From: Christian Grothoff Date: Mon, 1 Aug 2011 20:44:31 +0000 (+0000) Subject: LRN: Clear peer context before configuring it X-Git-Tag: initial-import-from-subversion-38251~17545 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1f7d234aa2cfc7868a6110d71fd0219bb96f35bf;p=oweals%2Fgnunet.git LRN: Clear peer context before configuring it --- diff --git a/src/transport/test_transport_api_unreliability.c b/src/transport/test_transport_api_unreliability.c index 266ab7908..e7cb00274 100644 --- a/src/transport/test_transport_api_unreliability.c +++ b/src/transport/test_transport_api_unreliability.c @@ -587,6 +587,7 @@ notify_connect (void *cls, static void setup_peer (struct PeerContext *p, const char *cfgname) { + memset (p, 0, sizeof (*p)); p->cfg = GNUNET_CONFIGURATION_create (); GNUNET_assert (GNUNET_OK == GNUNET_CONFIGURATION_load (p->cfg, cfgname));