]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
auth-juniper.c: ignore non-empty lines from TNCC after DSPREAUTH cookie
authorMarc St-Amand <pedalling.philosopher@gmail.com>
Tue, 5 Feb 2019 13:35:22 +0000 (08:35 -0500)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 5 Feb 2019 14:33:39 +0000 (14:33 +0000)
commit9715b03aa0ead727ff8f069b90d9aad864555a8e
treedbdcd8fac6edddf0fc0decd13534e869a41b9e9f
parent3235855966f2c3ce7f528f04964796bcaa1e0b5a
auth-juniper.c: ignore non-empty lines from TNCC after DSPREAUTH cookie

This skips over a seemingly harmless DSPREAUTH failure:

   Unexpected non-empty line from TNCC after DSPREAUTH cookie: '0'
   Failed to read response from TNCC
   Failed to obtain WebVPN cookie

After the unexpected '0', TNCC sends an empty line response and the
authentication sequence can proceed normally. In case other TNCC
variants send more chatter, the function ignores and logs up to 10
non-empty lines before giving up.

Signed-off-by: Marc St-Amand <pedalling.philosopher@gmail.com>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
auth-juniper.c