From 5aa983c21048a7c1e2ba9f60965c14e576177bb4 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 25 Oct 2018 20:41:34 +0100 Subject: [PATCH] Fix copy/paste error. --- lib/send_connect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/send_connect.c b/lib/send_connect.c index 4bc75989..841bf936 100644 --- a/lib/send_connect.c +++ b/lib/send_connect.c @@ -137,7 +137,7 @@ int send__connect(struct mosquitto *mosq, uint16_t keepalive, bool clean_session if(mosq->protocol == mosq_p_mqtt5){ /* Write properties */ - property__write_all(packet, mosq->will->properties); + property__write_all(packet, properties); } /* Payload */ @@ -145,7 +145,7 @@ int send__connect(struct mosquitto *mosq, uint16_t keepalive, bool clean_session if(will){ if(mosq->protocol == mosq_p_mqtt5){ /* Write will properties */ - property__write_all(packet, NULL); + property__write_all(packet, mosq->will->properties); } packet__write_string(packet, mosq->will->msg.topic, strlen(mosq->will->msg.topic)); packet__write_string(packet, (const char *)mosq->will->msg.payload, mosq->will->msg.payloadlen);