Skip to content

Commit

Permalink
Revert "fix(nterrors): undo erroneous fortra#1311 change that breaks …
Browse files Browse the repository at this point in the history
…getErrorString()"

This reverts commit bcacac1.
  • Loading branch information
Marshall-Hallenbeck committed Mar 16, 2024
1 parent bcacac1 commit c5b59dc
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 constants.ERROR_MESSAGES
return str(self)

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 nt_errors.ERROR_MESSAGES[self.error]
return str(self)

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

0 comments on commit c5b59dc

Please sign in to comment.