Skip to content

Commit

Permalink
Dump invalid packet in connection
Browse files Browse the repository at this point in the history
A user turned up on IRC, reported the 'Invalid packet waiting for KMP 301"
error, and disappeared within minutes, before anyone could reply. Add
a hex dump of the offending packet when that happens.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Feb 6, 2015
1 parent f0cbeac commit 31f0cfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions oncp.c
Expand Up @@ -1201,6 +1201,7 @@ int oncp_connect(struct openconnect_info *vpninfo)
if (len < 0x16 || load_le16(bytes) + 2 != len) {
vpn_progress(vpninfo, PRG_ERR,
_("Invalid packet waiting for KMP 301\n"));
buf_hexdump(vpninfo, bytes, len);
ret = -EINVAL;
goto out;
}
Expand Down

0 comments on commit 31f0cfe

Please sign in to comment.