mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 14:42:10 -05:00
ITS#6747 Fix LDAP_CONNECTIONLESS Debug(), warnings
This commit is contained in:
parent
0aa8c028b3
commit
5feeec67d7
4 changed files with 7 additions and 3 deletions
|
|
@ -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++;
|
||||
|
|
|
|||
Loading…
Reference in a new issue