From e53e37b9155823795ab92449f22d353765a7cd97 Mon Sep 17 00:00:00 2001 From: Philippe PITTOLI Date: Mon, 19 Sep 2016 17:38:52 +0200 Subject: [PATCH] pubsub: wrong pointer --- lib/pubsub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pubsub.c b/lib/pubsub.c index 42fc559..69e9c36 100644 --- a/lib/pubsub.c +++ b/lib/pubsub.c @@ -49,7 +49,7 @@ void pubsubd_msg_unserialize (struct pubsub_msg *msg, const char *buf, size_t ml cbor_item_t * item = cbor_load ((unsigned char *) buf, mlen, &result); struct cbor_pair * pair = cbor_map_handle (item); - cbor_mutable_data *data = cbor_bytestring_handle (pair->value); + cbor_mutable_data data = cbor_bytestring_handle (pair->value); msg->type = cbor_get_uint8 (pair->key); if (msg->type != PUBSUB_TYPE_DISCONNECT) {