Fix boolean logic fuck up

This commit is contained in:
Francisco Blas (klondike) Izquierdo Riera 2014-07-12 17:13:37 +02:00
parent 19068de088
commit 223e01937e
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ struct adc_message* adc_msg_parse_verify(struct hub_user* u, const char* line, s
if (!command) if (!command)
return 0; 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)); 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); adc_msg_free(command);