Don't fail if not all request is parsed

https://www.openssh.com/agent-restrict.html

266678e19e
This commit is contained in:
Roman Zeyde
2022-05-07 20:36:08 +03:00
parent 80bfda7899
commit b1b3e4b7ea

View File

@@ -76,5 +76,7 @@ def parse_ssh_blob(data):
public_key = util.read_frame(i)
res['public_key'] = formats.parse_pubkey(public_key)
assert not i.read()
unparsed = i.read()
if unparsed:
log.warning('unparsed blob: %r', unparsed)
return res