From: Kurt Zeilenga Date: Thu, 22 Jul 1999 20:37:56 +0000 (+0000) Subject: Fix IP: typo in peername X-Git-Tag: OPENLDAP_REL_ENG_2_BP~58 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0c1fc37f55c34c38eb488d3b6467d2f429c7bf3;p=openldap Fix IP: typo in peername --- diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index 3de1106ecf..f17a0df516 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -625,7 +625,7 @@ slapd_daemon_task( char *dnsname; char *peeraddr; - char peername[sizeof("IP:255.255.255.255:65336")]; + char peername[sizeof("IP=255.255.255.255:65336")]; if ( slap_listeners[l]->sl_sd == AC_SOCKET_INVALID ) continue; @@ -685,7 +685,7 @@ slapd_daemon_task( } peeraddr = inet_ntoa( from.sin_addr ); - sprintf( peername, "IP:%s:%d", + sprintf( peername, "IP=%s:%d", peeraddr != NULL ? peeraddr : "unknown", (unsigned) ntohs( from.sin_port ) );