CID 1452109: dsdb/util: do not check for NULL after deref
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Tue, 30 Jul 2019 22:16:37 +0000 (10:16 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 31 Jul 2019 02:50:24 +0000 (02:50 +0000)
commita5ec857abe99748dd478cdc988fa3399401334dc
tree72a5353d35e0ad596606c854fea47d76e5ba742e
parent35c54007e6183829d9d85a24b3bd95f469739ad3
CID 1452109: dsdb/util: do not check for NULL after deref

This is all strictly unnecessary, as ret is always != LDB_SUCCESS when
res is NULL, but we want to make peace between clang and converity.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util.c