diff options
author | monty@mysql.com <> | 2005-05-13 14:04:32 +0300 |
---|---|---|
committer | monty@mysql.com <> | 2005-05-13 14:04:32 +0300 |
commit | b54d7d04bd13498b5bc5e8e109f5690aeb10ec5d (patch) | |
tree | e79a2291f34c9b4f5b7aa00b0d318368038008da /sql/hostname.cc | |
parent | 1494f0ab6815075840728839dad528a37082def6 (diff) | |
download | mariadb-git-b54d7d04bd13498b5bc5e8e109f5690aeb10ec5d.tar.gz |
Fixes during review
Diffstat (limited to 'sql/hostname.cc')
-rw-r--r-- | sql/hostname.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/hostname.cc b/sql/hostname.cc index ec5c6f29a27..39223556024 100644 --- a/sql/hostname.cc +++ b/sql/hostname.cc @@ -209,8 +209,8 @@ my_string ip_to_hostname(struct in_addr *in, uint *errors) DBUG_PRINT("error",("gethostbyaddr returned %d",errno)); if (errno == HOST_NOT_FOUND || errno == NO_DATA) - add_wrong_ip(in); /* only cache negative responses, not failures */ - + goto add_wrong_ip_and_return; + /* Failure, don't cache responce */ DBUG_RETURN(0); } if (!hp->h_name[0]) // Don't allow empty hostnames |