From b213ce3a69432b57fd8bf5d3bd69386588490f63 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 27 Jul 2000 20:12:16 +0000 Subject: [PATCH] Remove cruft --- servers/slapd/connection.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/servers/slapd/connection.c b/servers/slapd/connection.c index b8acb6677c..9dc6eadea8 100644 --- a/servers/slapd/connection.c +++ b/servers/slapd/connection.c @@ -1098,7 +1098,6 @@ connection_resched( Connection *conn ) static int connection_op_activate( Connection *conn, Operation *op ) { struct co_arg *arg; - char *tmpdn; int status; ber_tag_t tag = op->o_tag; @@ -1106,17 +1105,11 @@ static int connection_op_activate( Connection *conn, Operation *op ) conn->c_conn_state = SLAP_C_BINDING; } - if ( conn->c_dn != NULL ) { - tmpdn = ch_strdup( conn->c_dn ); - } else { - tmpdn = NULL; - } - arg = (struct co_arg *) ch_malloc( sizeof(struct co_arg) ); arg->co_conn = conn; arg->co_op = op; - arg->co_op->o_dn = ch_strdup( tmpdn != NULL ? tmpdn : "" ); + arg->co_op->o_dn = ch_strdup( conn->c_dn != NULL ? conn->c_dn : "" ); arg->co_op->o_ndn = ch_strdup( arg->co_op->o_dn ); (void) dn_normalize( arg->co_op->o_ndn ); @@ -1129,10 +1122,6 @@ static int connection_op_activate( Connection *conn, Operation *op ) slap_op_add( &conn->c_ops, arg->co_op ); - if( tmpdn != NULL ) { - free( tmpdn ); - } - status = ldap_pvt_thread_pool_submit( &connection_pool, connection_operation, (void *) arg ); -- 2.39.5