diff options
author | Ramil Kalimullin <ramil@mysql.com> | 2010-06-04 21:58:41 +0400 |
---|---|---|
committer | Ramil Kalimullin <ramil@mysql.com> | 2010-06-04 21:58:41 +0400 |
commit | 9a381264978344ed4f053b9d780761b3607ff5bf (patch) | |
tree | 1569f8c6c965b03dae5312a35856049d9d6bc01f /sql/sql_connect.cc | |
parent | 517f586762a5c775f46668fedfa10c3c802e7f18 (diff) | |
download | mariadb-git-9a381264978344ed4f053b9d780761b3607ff5bf.tar.gz |
Fix for bug #53912: Fails to build from source
NET::skip_big_packet isn't defined for the embedded server,
hide it in such a case.
sql/sql_connect.cc:
Fix for bug #53912: Fails to build from source
- hide net.skip_big_packet for the embedded server,
as it isn't defined there.
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r-- | sql/sql_connect.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc index 2039c7f7449..28c1acc4716 100644 --- a/sql/sql_connect.cc +++ b/sql/sql_connect.cc @@ -471,6 +471,7 @@ check_user(THD *thd, enum enum_server_command command, } 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_command command, 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); } |