Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Dispatch 1046 - fix policy handling in python3 environment#334

Closed
kgiusti wants to merge 2 commits into
apache:masterfrom
kgiusti:DISPATCH-1046
Closed

Dispatch 1046 - fix policy handling in python3 environment#334
kgiusti wants to merge 2 commits into
apache:masterfrom
kgiusti:DISPATCH-1046

Conversation

@kgiusti
Copy link
Copy Markdown
Contributor

@kgiusti kgiusti commented Jun 27, 2018

Had to change the way we pass args to the host address parse tree api under python3

c_char_p is a bytes type under python3. Passing and returning a unicode string causes it to fail. Had to manually convert between the two. Also need to save a copy of the pattern in the tree as a payload.

@ChugR
Copy link
Copy Markdown
Contributor

ChugR commented Jun 27, 2018

This patch fixes the c_char_p in py3 and improves interfaces with some const additions.

The patch also repairs some incorrect handling of policy's parse tree. It looks like there were resource leaks when the trees were deleted. I don't think that was just a py3 issue.

This PR looks OK to me.

@asfgit asfgit closed this in 69c6134 Jun 28, 2018
@kgiusti kgiusti deleted the DISPATCH-1046 branch June 28, 2018 18:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants