From: Christian Grothoff Date: Thu, 21 Jan 2010 20:02:43 +0000 (+0000) Subject: fix X-Git-Tag: initial-import-from-subversion-38251~22884 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=071fd478e813a715fea48309eefde0683a42af64;p=oweals%2Fgnunet.git fix --- diff --git a/src/core/core_api.c b/src/core/core_api.c index 83482a3d0..e7e958bd7 100644 --- a/src/core/core_api.c +++ b/src/core/core_api.c @@ -378,6 +378,7 @@ main_handler (void *cls, const struct GNUNET_MessageHeader *msg) struct GNUNET_CORE_Handle *h = cls; unsigned int hpos; const struct ConnectNotifyMessage *cnm; + const struct DisconnectNotifyMessage *dnm; const struct NotifyTrafficMessage *ntm; const struct ConfigurationInfoMessage *cim; const struct GNUNET_MessageHeader *em; @@ -441,14 +442,14 @@ main_handler (void *cls, const struct GNUNET_MessageHeader *msg) GNUNET_break (0); break; } - if (msize != sizeof (struct ConnectNotifyMessage)) + if (msize != sizeof (struct DisconnectNotifyMessage)) { GNUNET_break (0); break; } - cnm = (const struct ConnectNotifyMessage *) msg; + dnm = (const struct DisconnectNotifyMessage *) msg; h->disconnects (h->cls, - &cnm->peer); + &dnm->peer); break; case GNUNET_MESSAGE_TYPE_CORE_NOTIFY_INBOUND: if (msize <