summaryrefslogtreecommitdiff
path: root/vio
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-02-15 14:42:13 +0200
committerunknown <monty@mysql.com>2005-02-15 14:42:13 +0200
commit358cfd6c4220d3d1d1f596f6313fcba1819ff1a6 (patch)
tree6690410c2b3f5adcb09c8d3ca85063e157d30540 /vio
parent4c21a10f27c6a15690b5640352d23f1c111ac729 (diff)
downloadmariadb-git-358cfd6c4220d3d1d1f596f6313fcba1819ff1a6.tar.gz
Better bug fix for #5569: "Incorrect "Access Denied" error with SAME login DIFFERENT host"
This fixes also the reverse lookup bug introduced by the previous patch mysql-test/t/group_by.test: Remove empty line vio/viosocket.c: Added function comment
Diffstat (limited to 'vio')
-rw-r--r--vio/viosocket.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c
index 1b6f46c57cf..f45c9dd98c4 100644
--- a/vio/viosocket.c
+++ b/vio/viosocket.c
@@ -291,6 +291,18 @@ my_bool vio_peer_addr(Vio * vio, char *buf, uint16 *port)
}
+/*
+ Get in_addr for a TCP/IP connection
+
+ SYNOPSIS
+ vio_in_addr()
+ vio vio handle
+ in put in_addr here
+
+ NOTES
+ one must call vio_peer_addr() before calling this one
+*/
+
void vio_in_addr(Vio *vio, struct in_addr *in)
{
DBUG_ENTER("vio_in_addr");