Commit 341a79d8 authored by Ondřej Kuzník's avatar Ondřej Kuzník
Browse files

Check transaction identifier is returned

parent 76c43165
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment