diff --git a/transaction.go b/transaction.go index 971accfa..9a265c03 100644 --- a/transaction.go +++ b/transaction.go @@ -188,6 +188,8 @@ func cbPAMConv(s C.int, msg *C.char, c C.uintptr_t) (*C.char, C.int) { bytes, err := cb.RespondPAMBinary(BinaryPointer(msg)) if err != nil { return nil, ConvAgain.toC() + } else if bytes == nil { + return nil, Success.toC() } return (*C.char)(C.CBytes(bytes)), Success.toC() } else {