1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

libcli/nbt/dns_hosts_file.c - change "ULONG_MAX" into "UINT32_MAX"

This fits better since the variable which is tested is of type "uint32_t".
This commit is contained in:
Matthias Dieter Wallnöfer
2010-03-30 19:08:57 +02:00
parent 3e091a8216
commit 818fcfb813

View File

@ -119,7 +119,7 @@ static bool getdns_hosts_fileent(TALLOC_CTX *ctx, XFILE *fp, char **pp_name, cha
continue;
}
*p_port = strtoul(port, NULL, 10);
if (*p_port == ULONG_MAX) {
if (*p_port == UINT32_MAX) {
DEBUG(0, ("getdns_hosts_fileent: Ill formed hosts SRV record [%s] (invalid port: %s)\n",
line, port));
continue;