[sr-dev] permission module issue for WS proto

Victor Seva linuxmaniac at torreviejawireless.org
Tue Aug 27 00:17:30 CEST 2013


Hi Andreas,

2013/8/26 Andreas Granig <agranig at sipwise.com>:
> Hi,
>
> In modules/permissions/trusted.c in function allow_trusted_2() there is
>
>     if(proto.len!=3 && proto.len!=4)
>         goto error;
>
> but later it checks for "ws" which is never reached due to len=2. Also the
> docs don't seem to be up to date in regards to support for WS and WSS.
>
> Unfortunately I'm travelling the next 3 days, maybe someone can quickly pick
> it up?

I think [0] and [1] may solve this. But I'm not so sure, I've just got
home after some glasses of wine :-P

[0] http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=573c9031a44168df356818f572f10f69791a1458
[1] http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-router;a=commitdiff;h=8097c2bccb2161f63900bbd5fb87a10eacdd282c



More information about the sr-dev mailing list