1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

fix compile errors

This commit is contained in:
Vladislav Vaintroub
2017-08-23 08:27:46 +00:00
parent 58cd69fc80
commit aaddac5cd7
3 changed files with 3 additions and 4 deletions

View File

@ -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"))