From: Howard Chu Date: Tue, 13 Dec 2011 23:53:38 +0000 (-0800) Subject: ITS#7107 fix Operation init on reuse X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=85c1c545f4e20882a2f748fcef5f732ea2d2ecf6;p=openldap ITS#7107 fix Operation init on reuse Additional fix for a66fb1630cc1134ed4e2a3d5a6a4983e6c4bae86 --- diff --git a/servers/slapd/operation.c b/servers/slapd/operation.c index 1d84d0c7ea..946eb7c9e2 100644 --- a/servers/slapd/operation.c +++ b/servers/slapd/operation.c @@ -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 ));