aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-05-07 22:37:29 +0200
committerMattias Andrée <maandree@operamail.com>2014-05-07 22:37:29 +0200
commit2d00dd92f935a4887580e37e2879f765819bc97a (patch)
tree0a169093bb84e165418d7bc74ac4d56add350099 /src
parentm (diff)
downloadmds-2d00dd92f935a4887580e37e2879f765819bc97a.tar.gz
mds-2d00dd92f935a4887580e37e2879f765819bc97a.tar.bz2
mds-2d00dd92f935a4887580e37e2879f765819bc97a.tar.xz
derp
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mds-server.c5
1 files changed, 3 insertions, 2 deletions
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;
}