Skip to content

Commit

Permalink
Fixed spn not being found in getST, fixes #1595
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisbalbachan committed Oct 4, 2023
1 parent 4131610 commit 663cc9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion impacket/krb5/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import struct

from pyasn1.codec.der import decoder
from six import ensure_binary

from . import asn1
from . import constants
Expand Down Expand Up @@ -151,7 +152,7 @@ def components_to_asn1(self, name):
strings = name.setComponentByName('name-string'
).getComponentByName('name-string')
for i, c in enumerate(self.components):
strings.setComponentByPosition(i, c)
strings.setComponentByPosition(i, ensure_binary(c))

return name

Expand Down

0 comments on commit 663cc9b

Please sign in to comment.