]> git.sur5r.net Git - openldap/blobdiff - libraries/liblutil/debug.c
Fix ldaps / TLS processing...
[openldap] / libraries / liblutil / debug.c
index a6fc5064d2d9d7861461bc5753b60e9658e56b02..2ebce49700b6a3b73b292bab4a2d00a212c0f488 100644 (file)
 
 #include "ldap_log.h"
 #include "ldap_defaults.h"
+#include "lber.h"
 
 static FILE *log_file;
 
 int lutil_debug_file( FILE *file )
 {
        log_file = file;
+       ber_set_option( NULL, LBER_OPT_LOG_PRINT_FILE, file );
 
        return 0;
 }
@@ -57,9 +59,10 @@ void (lutil_debug)( int level, int debug, const char *fmt, ... )
 
                if ( log_file == NULL )
                        return;
+
+           ber_set_option( NULL, LBER_OPT_LOG_PRINT_FILE, file );
        }
 #endif
-
        va_start( vl, fmt );
 
 #ifdef HAVE_VSNPRINTF