summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2014-03-16 21:03:01 +0100
committerSergei Golubchik <sergii@pisem.net>2014-03-16 21:03:01 +0100
commit5d0c01608c74b09fea8c6110213160b049487a4c (patch)
tree924e11e71f586c97a20f43d66183393ea1f48504 /sql-common
parentcfc83cf9d3c3354d47f9e7ee903ea279f60cce58 (diff)
parente772cbd7b774add42821c33b13ea052f8c9e2e6e (diff)
downloadmariadb-git-5d0c01608c74b09fea8c6110213160b049487a4c.tar.gz
5.2 merge
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/Makefile.am2
-rw-r--r--sql-common/client.c3
-rw-r--r--sql-common/pack.c4
3 files changed, 5 insertions, 4 deletions
diff --git a/sql-common/Makefile.am b/sql-common/Makefile.am
index 2f5a049085f..949ffcfbda9 100644
--- a/sql-common/Makefile.am
+++ b/sql-common/Makefile.am
@@ -11,7 +11,7 @@
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
## Process this file with automake to create Makefile.in
EXTRA_DIST = client.c pack.c my_time.c my_user.c client_plugin.c
diff --git a/sql-common/client.c b/sql-common/client.c
index 6cd6e25ee15..23b92480759 100644
--- a/sql-common/client.c
+++ b/sql-common/client.c
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2003, 2012, Oracle and/or its affiliates.
+ Copyright (c) 2003, 2013, Oracle and/or its affiliates.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -3728,6 +3728,7 @@ mysql_options(MYSQL *mysql,enum mysql_option option, const void *arg)
mysql->options.methods_to_use= option;
break;
case MYSQL_SET_CLIENT_IP:
+ my_free(mysql->options.client_ip,MYF(MY_ALLOW_ZERO_PTR));
mysql->options.client_ip= my_strdup(arg, MYF(MY_WME));
break;
case MYSQL_SECURE_AUTH:
diff --git a/sql-common/pack.c b/sql-common/pack.c
index 7ff89471b45..f3c5b049b2c 100644
--- a/sql-common/pack.c
+++ b/sql-common/pack.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000-2003 MySQL AB
+/* Copyright (c) 2000-2003, 2007 MySQL AB
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -11,7 +11,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA */
#include <my_global.h>
#include <mysql_com.h>