[sr-dev] git:master: permissions: fix ws support on allow_trusted function.

Alex Hermann alex at speakup.nl
Tue Aug 27 08:09:33 CEST 2013


On Tuesday 27 August 2013, Victor Seva wrote:
> -    if(proto.len!=3 && proto.len!=4)
> +    if(proto.len<2 && proto.len>4)
>  	goto error;

This is wrong, the condition will never match. You probably want to use || 
instead of &&.

-- 
Alex Hermann



More information about the sr-dev mailing list