--- libaitmqtt/src/conn.c 2022/09/14 18:36:23 1.3.12.4 +++ libaitmqtt/src/conn.c 2022/09/15 21:06:05 1.3.12.5 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: conn.c,v 1.3.12.4 2022/09/14 18:36:23 misho Exp $ +* $Id: conn.c,v 1.3.12.5 2022/09/15 21:06:05 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -229,7 +229,7 @@ mqtt_msgCONNACK(u_char retcode) return NULL; else { hdr = (struct mqtthdr *) msg->msg_base; - ack = (mqtthdr_connack_t*) msg->msg_base + sizeof(struct mqtthdr); + ack = (mqtthdr_connack_t*) (msg->msg_base + sizeof(struct mqtthdr)); } /* fixed header */