Skip to content

Commit

Permalink
Merge pull request #58 from dirtyfilthy/fix_broken_single_int_type_co…
Browse files Browse the repository at this point in the history
…nversion

Fix broken single int encoding
  • Loading branch information
skelsec authored Jan 22, 2025
2 parents edd8eec + 07d7b76 commit 67f683a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion msldap/protocol/typeconversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def single_bytes(x, encode = False):
def single_int(x, encode = False):
if encode is False:
return int(x[0])
return [str(x).encode()]
return [str(x[0]).encode()]

def single_bool(x, encode = False, encoding = 'utf-8'):
if encode is False:
Expand Down

0 comments on commit 67f683a

Please sign in to comment.