From: Pierangelo Masarati Date: Thu, 30 Dec 2010 21:41:07 +0000 (+0000) Subject: op->o_conn->c_sb may be 0 for internal operations X-Git-Tag: MIGRATION_CVS2GIT~320 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7443e6fc8cdcfe612ae3ce9feb32d2c93332c1db;p=openldap op->o_conn->c_sb may be 0 for internal operations --- 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 );