ITS#9630 back-sql: Close transactions after bind and search

This commit is contained in:
Aapo Romu 2021-07-13 16:09:39 +03:00 committed by Howard Chu
parent ab3db65388
commit 5b11591db9
2 changed files with 2 additions and 0 deletions

View file

@ -107,6 +107,7 @@ error_return:;
send_ldap_result( op, rs );
}
SQLTransact( SQL_NULL_HENV, dbh, SQL_ROLLBACK );
Debug( LDAP_DEBUG_TRACE,"<==backsql_bind()\n" );
return rs->sr_err;

View file

@ -2551,6 +2551,7 @@ done:;
op->ors_scope = LDAP_SCOPE_BASE;
}
SQLTransact( SQL_NULL_HENV, dbh, SQL_ROLLBACK );
Debug( LDAP_DEBUG_TRACE, "<==backsql_search()\n" );
return rs->sr_err;