~openconnect/openconnect/trunk

Viewing all changes in revision 2728.

  • Committer: David Woodhouse
  • Author(s): Marc St-Amand
  • Date: 2019-02-05 14:33:39 UTC
  • Revision ID: git-v1:9715b03aa0ead727ff8f069b90d9aad864555a8e
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>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: