[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix: undo untested breaking changes from fortra#1311 that change getE…
Browse files Browse the repository at this point in the history
…rrorString (fortra#1714)

* fix(nterrors): undo untested breaking changes from fortra#1311 that change getErrorString for nt_status errors

* fix(nt_errors): had incorrect older reference, updated to nt_errors

* Update impacket/krb5/kerberosv5.py

Co-authored-by: Gabriel Gonzalez <gabriel.gonzalez@fortra.com>

---------

Co-authored-by: Gabriel Gonzalez <gabriel.gonzalez@fortra.com>
  • Loading branch information
Marshall-Hallenbeck and gabrielg5 committed Mar 18, 2024
1 parent 4a62f39 commit 0d2b72a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion impacket/krb5/kerberosv5.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def getErrorPacket( self ):
return self.packet

def getErrorString( self ):
return str(self)
return constants.ERROR_MESSAGES[self.error]

def __str__( self ):
retString = 'Kerberos SessionError: %s(%s)' % (constants.ERROR_MESSAGES[self.error])
Expand Down
2 changes: 1 addition & 1 deletion impacket/smbconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ def getErrorPacket( self ):
return self.packet

def getErrorString( self ):
return str(self)
return nt_errors.ERROR_MESSAGES[self.error]

def __str__( self ):
key = self.error
Expand Down

0 comments on commit 0d2b72a

Please sign in to comment.