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

Port number left in network byte order when initializing sl_name in struct slap_listener (ITS#1615)

Full_Name: Ivan Nejgebauer
Version: 2.0.23
OS: Linux 2.2.x
URL: ftp://ftp.openldap.org/incoming/ivan.nejgebauer-020227.patch
Submission from: (NULL) (

When slapd initializes the sl_name field in the slap_listener structure
(servers/slapd/daemon.c), the port number is not converted from network to host
byte order. On little-endian machines this will result in the incorrect value
being printed (e.g., 34049 instead of 389).