Skip to content

Commit

Permalink
permissive UTF-8 parsing for NC11 delimiter (#563)
Browse files Browse the repository at this point in the history
  • Loading branch information
einarnn committed Apr 7, 2023
1 parent d6af094 commit 65286b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ncclient/transport/parser.py
Expand Up @@ -175,7 +175,7 @@ def _parse11(self):
while True and start < data_len:
# match to see if we found at least some kind of delimiter
self.logger.debug('_parse11: matching from %d bytes from start of buffer', start)
re_result = RE_NC11_DELIM.match(data[start:].decode('utf-8'))
re_result = RE_NC11_DELIM.match(data[start:].decode('utf-8', errors='ignore'))
if not re_result:

# not found any kind of delimiter just break; this should only
Expand Down

0 comments on commit 65286b5

Please sign in to comment.