diff options
author | jimw@mysql.com <> | 2005-01-25 12:06:55 -0800 |
---|---|---|
committer | jimw@mysql.com <> | 2005-01-25 12:06:55 -0800 |
commit | 94da57dc6588d00ffb0576634137281610d4263d (patch) | |
tree | 6eba82bf12f39ade3bb5bcddcc938ff32f334a3d /vio | |
parent | bc35532bcc9f7e90fcf68314f292eadc44080bea (diff) | |
download | mariadb-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.c | 2 | ||||
-rw-r--r-- | vio/viossl.c | 2 |
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; |