From 2d00dd92f935a4887580e37e2879f765819bc97a Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 7 May 2014 22:37:29 +0200 Subject: derp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mds-server.c b/src/mds-server.c index 932e7ea..3416777 100644 --- a/src/mds-server.c +++ b/src/mds-server.c @@ -960,9 +960,10 @@ void multicast_message(char* message, size_t length) interception_condition_t* cond = conds + i; for (j = 0; j < header_count; j++) { + if (*(cond->condition) == '\0') + break; if (cond->header_hash == hashes[j]) - if ((*(cond->condition) == '\0') || - strequals(cond->condition, headers[j]) || + if (strequals(cond->condition, headers[j]) || strequals(cond->condition, header_values[j])) break; } -- cgit v1.2.3-70-g09d2