Commits

Roger Light committed a8e563f

Bridge clients are recognised as bridges even after reloading from
persistence.

Thanks to Marcus Rejås.

Comments (0)

Files changed (2)

   unexpected behaviour if you were using topics of this form.
 - Log when outgoing messages for a client begin to drop off the end of the
   queue.
+- Bridge clients are recognised as bridges even after reloading from
+  persistence.
 
 Client library:
 - Fix support for Python 2.6, 3.0, 3.1.

src/read_handle_server.c

 		mqtt3_context_disconnect(db, context);
 		return MOSQ_ERR_PROTOCOL;
 	}
-	if((protocol_version&0x80) == 0x80){
-		context->is_bridge = true;
-	}
 
 	if(_mosquitto_read_byte(&context->in_packet, &connect_flags)){
 		mqtt3_context_disconnect(db, context);
 	context->clean_session = clean_session;
 	context->ping_t = 0;
 	context->is_dropping = false;
+	if((protocol_version&0x80) == 0x80){
+		context->is_bridge = true;
+	}
 
 	// Add the client ID to the DB hash table here
 	new_cih = _mosquitto_malloc(sizeof(struct _clientid_index_hash));