mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Check transaction identifier is returned
This commit is contained in:
parent
76c43165ea
commit
341a79d88c
@ -262,7 +262,7 @@ main( int argc, char **argv )
|
||||
if( txn ) {
|
||||
/* start transaction */
|
||||
rc = ldap_txn_start_s( ld, NULL, NULL, &txn_id );
|
||||
if( rc != LDAP_SUCCESS ) {
|
||||
if( rc != LDAP_SUCCESS || !txn_id ) {
|
||||
tool_perror( "ldap_txn_start_s", rc, NULL, NULL, NULL, NULL );
|
||||
if( txn > 1 ) {
|
||||
retval = EXIT_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user