summaryrefslogtreecommitdiff
path: root/databases/mysql51-server/patches/patch-ay
blob: f7ccb9df63fa2a6231102c9fefe83bfdb0478d7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ay,v 1.1.2.2 2010/05/26 17:13:53 tron Exp $

Fix build problem.

--- sql/sql_connect.cc.orig	2010-05-06 15:27:31.000000000 +0000
+++ sql/sql_connect.cc
@@ -471,6 +471,7 @@ check_user(THD *thd, enum enum_server_co
       }
       my_ok(thd);
       thd->password= test(passwd_len);          // remember for error messages 
+#ifndef EMBEDDED_LIBRARY
       /*
         Allow the network layer to skip big packets. Although a malicious
         authenticated session might use this to trick the server to read
@@ -478,6 +479,7 @@ check_user(THD *thd, enum enum_server_co
         that needs to be preserved as to not break backwards compatibility.
       */
       thd->net.skip_big_packet= TRUE;
+#endif
       /* Ready to handle queries */
       DBUG_RETURN(0);
     }