From b658d8c71b3f822fdcd09e2e97cc35a69bcc5f64 Mon Sep 17 00:00:00 2001 From: "Schanzenbach, Martin" Date: Wed, 4 Jul 2018 01:27:46 +0200 Subject: [PATCH] fix --- src/identity-provider/identity_provider_api.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/identity-provider/identity_provider_api.c b/src/identity-provider/identity_provider_api.c index 772b4a244..9ea7a5d11 100644 --- a/src/identity-provider/identity_provider_api.c +++ b/src/identity-provider/identity_provider_api.c @@ -1350,7 +1350,6 @@ GNUNET_IDENTITY_PROVIDER_ticket_revoke (struct GNUNET_IDENTITY_PROVIDER_Handle * void *cb_cls) { struct GNUNET_IDENTITY_PROVIDER_Operation *op; - struct GNUNET_MQ_Envelope *env; struct RevokeTicketMessage *msg; uint32_t rid; @@ -1363,7 +1362,7 @@ GNUNET_IDENTITY_PROVIDER_ticket_revoke (struct GNUNET_IDENTITY_PROVIDER_Handle * GNUNET_CONTAINER_DLL_insert_tail (h->op_head, h->op_tail, op); - env = GNUNET_MQ_msg_extra (msg, + op->env = GNUNET_MQ_msg_extra (msg, sizeof (struct GNUNET_IDENTITY_PROVIDER_Ticket), GNUNET_MESSAGE_TYPE_IDENTITY_PROVIDER_REVOKE_TICKET); msg->id = htonl (rid); @@ -1371,11 +1370,9 @@ GNUNET_IDENTITY_PROVIDER_ticket_revoke (struct GNUNET_IDENTITY_PROVIDER_Handle * GNUNET_memcpy (&msg[1], ticket, sizeof (struct GNUNET_IDENTITY_PROVIDER_Ticket)); - if (NULL == h->mq) - op->env = env; - else + if (NULL != h->mq) GNUNET_MQ_send (h->mq, - env); + op->env); return op; } -- 2.25.1