bugfix -- ssh delimiter parsing
authorShikhar Bhushan <shikhar@schmizz.net>
Sun, 2 Aug 2009 19:56:17 +0000 (19:56 +0000)
committerShikhar Bhushan <shikhar@schmizz.net>
Sun, 2 Aug 2009 19:56:17 +0000 (19:56 +0000)
git-svn-id: http://ncclient.googlecode.com/svn/trunk@172 6dbcf712-26ac-11de-a2f3-1373824ab735

ncclient/transport/ssh.py

index 8aa56c7..3c6a8c7 100644 (file)
@@ -86,6 +86,7 @@ class SSHSession(Session):
             elif x == delim[expect]: # what we expected
                 expect += 1 # expect the next delim char
             else:
+                expect = 0
                 continue
             # loop till last delim char expected, break if other char encountered
             for i in range(expect, n):