]> git.sur5r.net Git - openldap/commitdiff
op->o_conn->c_sb may be 0 for internal operations
authorPierangelo Masarati <ando@openldap.org>
Thu, 30 Dec 2010 21:41:07 +0000 (21:41 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 30 Dec 2010 21:41:07 +0000 (21:41 +0000)
servers/slapd/bind.c

index 7eb881f1fa8439b5eb4c9065fe712585828b1cd0..fc82b9547a14ac20293d5f7031d5359e3ac23cd2 100644 (file)
@@ -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 );