Skip to content

Commit

Permalink
revert fix sasl empty payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigory Aksentyev committed Apr 20, 2018
1 parent 0f981c2 commit 448fec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/sasl/sasl.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (ss *saslSession) Step(serverData []byte) (clientData []byte, done bool, er
return clientData, false, nil
}

return []byte{}, false, saslError(rc, ss.conn, "cannot establish SASL session")
return nil, false, saslError(rc, ss.conn, "cannot establish SASL session")
}

func saslError(rc C.int, conn *C.sasl_conn_t, msg string) error {
Expand Down

0 comments on commit 448fec0

Please sign in to comment.