scap1784 / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

Bug in ssl.py #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

  there seems to be a typo/bug in ssl.py in the SSL2 class.

Unless I'm missing something, lines saying:
            self.pad = self.data[1+n:1+n+pad]
            self.data = self.data[1+n+pad:]

should really say:
            self.pad = self.data[1+n:1+n+padlen]
            self.data = self.data[1+n+padlen:]

HTH

   Jirka

Original issue reported on code.google.com by jirka.ve...@gmail.com on 27 May 2008 at 12:37

GoogleCodeExporter commented 9 years ago
Good catch, thanks!

Fixed in r46.

Original comment by jon.ober...@gmail.com on 27 May 2008 at 2:08