MXS-1628: Respond with correct error to malformed packets

If the client sent a malformed authentication response packet, MaxScale
would interpret that as failed authentication.
This commit is contained in:
Markus Mäkelä
2018-05-10 12:45:43 +03:00
parent a544239540
commit 7d784001df
3 changed files with 28 additions and 9 deletions

View File

@ -99,6 +99,7 @@ typedef struct mxs_authenticator
#define MXS_AUTH_INCOMPLETE 4 /**< Authentication is not yet complete */
#define MXS_AUTH_SSL_INCOMPLETE 5 /**< SSL connection is not yet complete */
#define MXS_AUTH_NO_SESSION 6
#define MXS_AUTH_BAD_HANDSHAKE 7 /**< Malformed client packet */
/** Return values for the loadusers entry point */
#define MXS_AUTH_LOADUSERS_OK 0 /**< Users loaded successfully */