]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
return EPERM, not EINVAL, when GP gateways reject the cookie upon get-config or GET...
authorDaniel Lenski <dlenski@gmail.com>
Mon, 22 Feb 2021 03:17:42 +0000 (19:17 -0800)
committerDaniel Lenski <dlenski@gmail.com>
Mon, 22 Feb 2021 03:33:39 +0000 (19:33 -0800)
commit57e6d3d7a476f4d7c565e9b70c832dd3327b8d24
treeb2d90f7d3d0169b698d9c18a3f430ee9225c34eb
parent41381081a96fd4dfe5d1e1e380049523c075112c
return EPERM, not EINVAL, when GP gateways reject the cookie upon get-config or GET-tunnel

Tested against 2 real GlobalProtect gateway servers, which both exhibit
these error behaviors:

1. 'GET /ssl-vpn/config' with bogus 'portal' field in cookie
   => XML error "Portal name not found"
2. 'GET /ssl-vpn/config' with 'user', 'authcookie', or 'portal' fields missing from cookie
   => HTTP/1.1 200, plaintext "errors getting SSL/VPN config"
3. 'GET /ssl-vpn-tunnel' with bogus 'user' or 'authcookie'
   => HTTP/1.1 504 (Gateway Timeout)

Signed-off-by: Daniel Lenski <dlenski@gmail.com>
gpst.c