Skip to content

Commit

Permalink
fix(nterrors): undo erroneous fortra#1311 change that breaks getError…
Browse files Browse the repository at this point in the history
…String()
  • Loading branch information
Marshall-Hallenbeck committed Mar 16, 2024
1 parent 5063ad5 commit bcacac1
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

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 bcacac1

Please sign in to comment.