From f0c1fc37f55c34c38eb488d3b6467d2f429c7bf3 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 22 Jul 1999 20:37:56 +0000 Subject: [PATCH] Fix IP: typo in peername --- servers/slapd/daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) ); -- 2.39.5