[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#5436) htons() expects an unsigned short

Full_Name: Rein Tollevik
Version: 2.4.8
OS: Solaris
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (

libraries/libldap/os-ip.c casts the argument to htons() to a short, it should be
an explicit unsigned short.  This causes the use of high port numbers to fail on
systems where shorts are signed by default.

Rein Tollevik
Basefarm AS