From 5748d3ff729f519a41325ca3e176d5e4128428b1 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 20 Jul 2005 00:49:33 +0000 Subject: [PATCH] connection_client leave c_peer_* fields NULL --- servers/slapd/back-monitor/conn.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-monitor/conn.c b/servers/slapd/back-monitor/conn.c index caa59c7a95..6f5a187e71 100644 --- a/servers/slapd/back-monitor/conn.c +++ b/servers/slapd/back-monitor/conn.c @@ -424,12 +424,13 @@ conn_create( mi->mi_ad_monitorConnectionAuthzDN->ad_cname.bv_val, c->c_dn.bv_len ? c->c_dn.bv_val : SLAPD_ANONYMOUS, + /* NOTE: client connections leave the c_peer_* fields NULL */ mi->mi_ad_monitorConnectionListener->ad_cname.bv_val, c->c_listener_url.bv_val, mi->mi_ad_monitorConnectionPeerDomain->ad_cname.bv_val, - c->c_peer_domain.bv_val, + BER_BVISNULL( &c->c_peer_domain ) ? "unknown" : c->c_peer_domain.bv_val, mi->mi_ad_monitorConnectionLocalAddress->ad_cname.bv_val, - c->c_peer_name.bv_val, + BER_BVISNULL( &c->c_peer_name ) ? "unknown" : c->c_peer_name.bv_val, mi->mi_ad_monitorConnectionPeerAddress->ad_cname.bv_val, c->c_sock_name.bv_val, -- 2.39.5