diff options
author | Michele Baldessari <michele@acksyn.org> | 2012-09-10 14:58:28 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-09-10 14:58:28 -0700 |
commit | 008bb29023ed6875d4ed2def0976b55051de02bf (patch) | |
tree | 784a6acadb714d14af8a0003c040c838c19b9870 /source4/winbind | |
parent | da731c1c587dc081d81f03f08920791039c47d0e (diff) | |
download | samba-008bb29023ed6875d4ed2def0976b55051de02bf.tar.gz |
Set trans to a value that is not LDB_SUCCESS (all LDB_ constants are
positive) so that any "goto failed:" call does not end up calling
ldb_transaction_cancel() if trans is initialized to 0 (LDB_SUCCESS)
by chance.
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/winbind')
-rw-r--r-- | source4/winbind/idmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/winbind/idmap.c b/source4/winbind/idmap.c index 976a2d0f9d3..a6cc88f8278 100644 --- a/source4/winbind/idmap.c +++ b/source4/winbind/idmap.c @@ -387,7 +387,7 @@ static NTSTATUS idmap_sid_to_xid(struct idmap_context *idmap_ctx, struct ldb_dn *dn; struct ldb_message *hwm_msg, *map_msg, *sam_msg; struct ldb_result *res = NULL; - int trans; + int trans = -1; uint32_t low, high, hwm, new_xid; char *sid_string, *unixid_string, *hwm_string; bool hwm_entry_exists; |