From 7443e6fc8cdcfe612ae3ce9feb32d2c93332c1db Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 30 Dec 2010 21:41:07 +0000 Subject: [PATCH] op->o_conn->c_sb may be 0 for internal operations --- servers/slapd/bind.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/bind.c b/servers/slapd/bind.c index 7eb881f1fa..fc82b9547a 100644 --- a/servers/slapd/bind.c +++ b/servers/slapd/bind.c @@ -418,7 +418,8 @@ fe_op_bind_success( Operation *op, SlapReply *rs ) ber_dupbv( &op->o_conn->c_ndn, &op->o_req_ndn ); - if( !BER_BVISEMPTY( &op->o_conn->c_dn ) ) { + /* op->o_conn->c_sb may be 0 for internal operations */ + if( !BER_BVISEMPTY( &op->o_conn->c_dn ) && op->o_conn->c_sb != 0 ) { ber_len_t max = sockbuf_max_incoming_auth; ber_sockbuf_ctrl( op->o_conn->c_sb, LBER_SB_OPT_SET_MAX_INCOMING, &max ); -- 2.39.5