mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
tsocket: Pass the full port number to getaddrinfo().
The code stripped port numbers above 9999 down to 4 digits. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Jul 1 21:10:53 CEST 2013 on sn-devel-104
This commit is contained in:
parent
3d20d20c4c
commit
0b58eed335
@ -389,7 +389,7 @@ int _tsocket_address_inet_from_strings(TALLOC_CTX *mem_ctx,
|
||||
return -1;
|
||||
}
|
||||
|
||||
snprintf(port_str, sizeof(port_str) - 1, "%u", port);
|
||||
snprintf(port_str, sizeof(port_str), "%u", port);
|
||||
|
||||
ret = getaddrinfo(addr, port_str, &hints, &result);
|
||||
if (ret != 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user