From 223e01937e7c9670952bf4963c83cec5a608750d Mon Sep 17 00:00:00 2001 From: "Francisco Blas (klondike) Izquierdo Riera" Date: Sat, 12 Jul 2014 17:13:37 +0200 Subject: [PATCH] Fix boolean logic fuck up --- src/adc/message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adc/message.c b/src/adc/message.c index a53fdd2..db12155 100644 --- a/src/adc/message.c +++ b/src/adc/message.c @@ -311,7 +311,7 @@ struct adc_message* adc_msg_parse_verify(struct hub_user* u, const char* line, s if (!command) return 0; - if (command->source && (!u || command->source != u->id.sid || auth_cred_is_unrestricted(u->credentials))) + if (command->source && (!u || (command->source != u->id.sid && !auth_cred_is_unrestricted(u->credentials)))) { LOG_DEBUG("Command does not match user's SID (command->source=%d, user->id.sid=%d)", command->source, (u ? u->id.sid : 0)); adc_msg_free(command);