]> git.sur5r.net Git - openldap/commitdiff
connection_client leave c_peer_* fields NULL
authorPierangelo Masarati <ando@openldap.org>
Wed, 20 Jul 2005 00:49:33 +0000 (00:49 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 20 Jul 2005 00:49:33 +0000 (00:49 +0000)
servers/slapd/back-monitor/conn.c

index caa59c7a95b990e8cf9d2ff3b3e9ee9a279cf6a2..6f5a187e714f9f00239ed93e2fdf89c5374bf843 100644 (file)
@@ -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,