--- mqtt/src/Attic/conn.c 2011/11/21 14:40:56 1.1.2.3 +++ mqtt/src/Attic/conn.c 2011/11/22 14:00:09 1.1.2.4 @@ -65,6 +65,7 @@ mqtt_msgCONNECT(mqtt_msg_t * __restrict buf, const cha } /* fixed header */ + MQTTHDR_MSGINIT(hdr); hdr->mqtt_msg.type = MQTT_TYPE_CONNECT; *hdr->mqtt_len = 0; @@ -168,6 +169,7 @@ mqtt_msgCONNACK(mqtt_msg_t * __restrict buf, u_char re } /* fixed header */ + MQTTHDR_MSGINIT(hdr); hdr->mqtt_msg.type = MQTT_TYPE_CONNACK; *hdr->mqtt_len = sizeof(mqtthdr_connack_t);