summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-01-25 12:06:55 -0800
committerjimw@mysql.com <>2005-01-25 12:06:55 -0800
commit94da57dc6588d00ffb0576634137281610d4263d (patch)
tree6eba82bf12f39ade3bb5bcddcc938ff32f334a3d /vio
parentbc35532bcc9f7e90fcf68314f292eadc44080bea (diff)
downloadmariadb-git-94da57dc6588d00ffb0576634137281610d4263d.tar.gz
Always call vio_in_addr() so that thd->remote is
always initialized. (Bug #5569)
Diffstat (limited to 'vio')
-rw-r--r--vio/viosocket.c2
-rw-r--r--vio/viossl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c
index ad156fc33bf..1b6f46c57cf 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -295,7 +295,7 @@ void vio_in_addr(Vio *vio, struct in_addr *in)
{
DBUG_ENTER("vio_in_addr");
if (vio->localhost)
- bzero((char*) in, sizeof(*in)); /* This should never be executed */
+ bzero((char*) in, sizeof(*in));
else
*in=vio->remote.sin_addr;
DBUG_VOID_RETURN;
diff --git a/vio/viossl.c b/vio/viossl.c
index a489cb98f98..07713c83763 100644
--- a/vio/viossl.c
+++ b/vio/viossl.c
@@ -259,7 +259,7 @@ void vio_ssl_in_addr(Vio *vio, struct in_addr *in)
{
DBUG_ENTER("vio_ssl_in_addr");
if (vio->localhost)
- bzero((char*) in, sizeof(*in)); /* This should never be executed */
+ bzero((char*) in, sizeof(*in));
else
*in=vio->remote.sin_addr;
DBUG_VOID_RETURN;