Commits

Roger Light  committed 952239b

Fix incorrect retained message delivery when using wildcard subs in some
circumstances. Fixes bug #1226040.

Thanks to Jan-Piet Mens.

  • Participants
  • Parent commits d9ba6b5
  • Branches 1.2.1

Comments (0)

Files changed (2)

File ChangeLog.txt

   including ACLs failing. This has been fixed.
 - Add note to mosquitto-tls man page stating that certificates need to be
   unique. Closes bug #1221285.
+- Fix incorrect retained message delivery when using wildcard subs in some
+  circumstances. Fixes bug #1226040.
 
 Client library:
 - Fix support for Python 2.6, 3.0, 3.1.
 					_retain_process(db, branch->retained, context, sub, sub_qos);
 				}
 			}
-		}
-		if(!branch->next && tokens->next && !strcmp(tokens->next->topic, "#") && level>0){
-			if(branch->retained){
-				_retain_process(db, branch->retained, context, sub, sub_qos);
+			if(!branch->next && tokens->next && !strcmp(tokens->next->topic, "#") && level>0){
+				if(branch->retained){
+					_retain_process(db, branch->retained, context, sub, sub_qos);
+				}
 			}
 		}
+
 		branch = branch->next;
 	}
 	return flag;