Commit 5feeec67 authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

ITS#6747 Fix LDAP_CONNECTIONLESS Debug(), warnings

parent 0aa8c028
......@@ -211,7 +211,7 @@ start_again:;
if ( LDAP_IS_UDP(ld) ) {
struct sockaddr sa = {0};
/* dummy, filled with ldo_peer in request.c */
err = ber_write( ber, &sa, sizeof(sa), 0 );
err = ber_write( ber, (char *) &sa, sizeof(sa), 0 );
}
if ( LDAP_IS_UDP(ld) && ld->ld_options.ldo_version ==
LDAP_VERSION2 )
......
......@@ -302,7 +302,7 @@ ldap_build_search_req(
if ( LDAP_IS_UDP(ld) ) {
struct sockaddr sa = {0};
/* dummy, filled with ldo_peer in request.c */
err = ber_write( ber, &sa, sizeof( sa ), 0 );
err = ber_write( ber, (char *) &sa, sizeof( sa ), 0 );
}
if ( LDAP_IS_UDP(ld) && ld->ld_options.ldo_version == LDAP_VERSION2) {
char *dn = ld->ld_options.ldo_cldapdn;
......
......@@ -39,6 +39,10 @@
#include "lutil.h"
#include "slap.h"
#ifdef LDAP_CONNECTIONLESS
#include "../../libraries/liblber/lber-int.h" /* ber_int_sb_read() */
#endif
#ifdef LDAP_SLAPI
#include "slapi/slapi.h"
#endif
......
......@@ -2867,7 +2867,7 @@ connectionless_init( void )
if ( !c ) {
Debug( LDAP_DEBUG_TRACE,
"connectionless_init: failed on %s (%d)\n",
lr->sl_url, lr->sl_sd, 0 );
lr->sl_url.bv_val, lr->sl_sd, 0 );
return -1;
}
lr->sl_is_udp++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment