Skip to content

Commit

Permalink
fixup! transaction: Add support for using raw binary pointers convers…
Browse files Browse the repository at this point in the history
…ation handler
  • Loading branch information
3v1n0 committed Nov 30, 2023
1 parent 720d298 commit 59f33e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app-transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ func pamConvHandler(style Style, msg *C.char, handler ConversationHandler) (*C.c
if style == BinaryPrompt {
ptr, err := cb.RespondPAMBinary(BinaryPointer(msg))
if err != nil {
defer C.free(unsafe.Pointer(ptr))
return nil, C.int(ErrConv)
}
return (*C.char)(ptr), success
Expand Down

0 comments on commit 59f33e2

Please sign in to comment.