diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 18:40:31 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-20 11:18:35 +0200 |
commit | 1078eb21c49d707ddeef2257353f35c10d131b9f (patch) | |
tree | 64e7f4ff60069931f905f27a200687099fa030bf /source3/winbindd | |
parent | 058c4f84924c07b88ccaf3d617f3abff797a7cc8 (diff) | |
download | samba-1078eb21c49d707ddeef2257353f35c10d131b9f.tar.gz samba-1078eb21c49d707ddeef2257353f35c10d131b9f.tar.xz samba-1078eb21c49d707ddeef2257353f35c10d131b9f.zip |
tdb_delete: check returns for 0, not -1.
TDB2 returns a negative error number on failure. This is compatible
if we always check for != 0 instead of == -1.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'source3/winbindd')
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index daea4e866a..c45aabc902 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -4420,7 +4420,7 @@ static bool wcache_tdc_store_list( struct winbindd_tdc_domain *domains, size_t n SAFE_FREE( data.dptr ); SAFE_FREE( key.dptr ); - return ( ret != -1 ); + return ( ret == 0 ); } /********************************************************************* |