]> git.sur5r.net Git - openldap/commitdiff
ITS#7107 fix Operation init on reuse
authorHoward Chu <hyc@openldap.org>
Tue, 13 Dec 2011 23:53:38 +0000 (15:53 -0800)
committerHoward Chu <hyc@openldap.org>
Thu, 15 Dec 2011 03:33:40 +0000 (19:33 -0800)
Additional fix for a66fb1630cc1134ed4e2a3d5a6a4983e6c4bae86

servers/slapd/operation.c

index 1d84d0c7eaf07f78d573e9142bbd10f28f45683a..946eb7c9e2741c8ed07edb85dfe006a2f7653737 100644 (file)
@@ -129,6 +129,7 @@ slap_op_free( Operation *op, void *ctx )
        op->o_bd = NULL;
        BER_BVZERO( &op->o_req_dn );
        BER_BVZERO( &op->o_req_ndn );
+       memset( op->o_hdr, 0, sizeof( *op->o_hdr ));
        memset( &op->o_request, 0, sizeof( op->o_request ));
        memset( &op->o_do_not_cache, 0, sizeof( Operation ) - offsetof( Operation, o_do_not_cache ));
        memset( opbuf->ob_controls, 0, sizeof( opbuf->ob_controls ));