OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-268-gffe4454
Gerrit Code Review
Fri, 15 Oct 2010 14:03:45 -0700 (PDT)
The following commit has been merged in the master branch:
Author: Russ Allbery <email@example.com>
Date: Thu Oct 14 13:41:45 2010 -0700
Return SRV record ports in network byte order
Convert the port extracted from the SRV record return to network byte
order before assigning it to the port array.
The port in a SRV record is extracted by pulling out the high byte
and low byte and then mathematically combining them, which implicity
converts from network byte order to host byte order. However, the
callers of afsconf_LookupServer expect the port array to be returned
in network byte order since ports are assigned without modification
to the .sin_port field of a struct sockaddr_in. See also the byte
order of the default afsdbPort value.
Reported by Jan Christoph Nordholz (Debian Bug#600228).
Tested-by: BuildBot <firstname.lastname@example.org>
Reviewed-by: Derrick Brashear <email@example.com>
Reviewed-by: Jeffrey Altman <firstname.lastname@example.org>
Tested-by: Jeffrey Altman <email@example.com>
src/auth/cellconfig.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
OpenAFS Master Repository