diff --git a/server/modules/protocol/mysql_common.c b/server/modules/protocol/mysql_common.c index 73865e36a..109299854 100644 --- a/server/modules/protocol/mysql_common.c +++ b/server/modules/protocol/mysql_common.c @@ -731,8 +731,8 @@ int gw_send_authentication_to_backend( rv = dcb_write(dcb, buffer); - if (rv < 0) { - return rv; + if (rv == 0) { + return 1; } else { return 0; }