Skip to content

Commit

Permalink
fix(ldap-auth) free internal pointer after covert to lua string (#8696)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayocream authored Apr 19, 2022
1 parent d4bdae5 commit d7a8e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/plugins/ldap-auth/asn1.lua
Original file line number Diff line number Diff line change
Expand Up @@ -213,9 +213,9 @@ do
if typ == nil then
return nil
end
local ret = ASN1_STRING_get0_data(typ)
local ret = ffi_string(ASN1_STRING_get0_data(typ))
C.ASN1_STRING_free(typ)
return ffi_string(ret)
return ret
end

decoder[TAG.INTEGER] = function(der, offset, len)
Expand Down

0 comments on commit d7a8e66

Please sign in to comment.