]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-monitor/listener.c
Destroy monitor_info.mi_cache_mutex
[openldap] / servers / slapd / back-monitor / listener.c
index 4fe5b7790c2b36b4cf2b61e49a513ab01541fe8b..ae0453b62bb16cf562746196001a8bc0ffbac8ce 100644 (file)
@@ -2,7 +2,7 @@
 /* $OpenLDAP$ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2001-2004 The OpenLDAP Foundation.
+ * Copyright 2001-2005 The OpenLDAP Foundation.
  * Portions Copyright 2001-2003 Pierangelo Masarati.
  * All rights reserved.
  *
@@ -22,6 +22,7 @@
 #include "portable.h"
 
 #include <stdio.h>
+#include <ac/string.h>
 
 #include "slap.h"
 #include "back-monitor.h"
@@ -106,9 +107,7 @@ monitor_subsys_listener_init(
                if ( l[ i ]->sl_is_tls ) {
                        struct berval bv;
 
-                       bv.bv_val = "TLS";
-                       bv.bv_len = sizeof("TLS")-1;
-
+                       BER_BVSTR( &bv, "TLS" );
                        attr_merge_normalize_one( e, mi->mi_ad_monitoredInfo,
                                        &bv, NULL );
                }