ports/sysutils/monit/files/patch-protocols-mysql_c
Wesley Shields b92554180c - Add patch to fix MySQL protocol testing with MySQL 5.1.57+ and 5.5.12+.
Taken from vendor repo (r372).
- Remove CPPFLAGS from CONFIGURE_ARGS as it is inherently passed via use of
  GNU_CONFIGURE. (quiets lint warning)
- Remove WITH_SSL option conditional and replace it with a WITHOUT_SSL
  conditional. SSL support is enabled by default in configure and the
  --enable-SSL and --with-openssl knobs have been removed. (quiets configure
  warning)
- Change Mk includes to use new options style.
- Fix WWW in pkg-descr.

PR:		ports/158198
Submitted by:	Jase Thew <freebsd@beardz.net>
Approved by:	Martin Pala <martinp@tildeslash.com> (maintainer)
2011-06-25 12:37:57 +00:00

13 lines
714 B
Text

--- protocols/mysql.c.orig 2011-02-07 20:04:08.000000000 +0000
+++ protocols/mysql.c 2011-05-23 12:35:35.000000000 +0100
@@ -160,8 +160,8 @@
}
return TRUE;
- } else if((buf[4] == 0xFF) && ((buf[5] == 0x15 && buf[6] == 0x04) || (buf[5] == 0xE3 && buf[6] == 0x04))) {
- /* If access denied (1045) or server requires newer authentication protocol (1251), return success immediately */
+ } else if((buf[4] == 0xFF) && ((buf[5] == 0x15 && buf[6] == 0x04) || (buf[5] == 0xE3 && buf[6] == 0x04) || (buf[5] == 0x13 && buf[6] == 0x04))) {
+ /* If access denied (1045) or server requires newer authentication protocol (1251) or bad handshake (1043) return success immediately */
return TRUE;
}