From 341a79d88c4c4e5ee371ba85cda7c0ffc4dc9a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Tue, 28 Jan 2020 12:10:17 +0000 Subject: [PATCH] Check transaction identifier is returned --- clients/tools/ldapmodify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/tools/ldapmodify.c b/clients/tools/ldapmodify.c index 5f1e28d6be..57657fdaa2 100644 --- a/clients/tools/ldapmodify.c +++ b/clients/tools/ldapmodify.c @@ -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;