diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2017-08-23 08:27:46 +0000 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2017-08-23 08:27:46 +0000 |
commit | aaddac5cd7b23795ee617ee6f8b5613eec343e79 (patch) | |
tree | 60f3edbd9f3a70c6c5e21b1472956527730099e8 /sql/proxy_protocol.cc | |
parent | 58cd69fc808cade5ec3183a56b9d16957f0da02c (diff) | |
download | mariadb-git-aaddac5cd7b23795ee617ee6f8b5613eec343e79.tar.gz |
fix compile errors
Diffstat (limited to 'sql/proxy_protocol.cc')
-rw-r--r-- | sql/proxy_protocol.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/proxy_protocol.cc b/sql/proxy_protocol.cc index 616e5397ea1..0309cf42ddf 100644 --- a/sql/proxy_protocol.cc +++ b/sql/proxy_protocol.cc @@ -53,8 +53,8 @@ static int parse_v1_header(char *hdr, size_t len, proxy_peer_info *peer_info) return -1; } - if (client_port < 0 || client_port > UINT16_MAX - || server_port < 0 || server_port > UINT16_MAX) + if (client_port < 0 || client_port > 0xffff + || server_port < 0 || server_port > 0xffff) return -1; if (!strcmp(address_family, "UNKNOWN")) |