mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
2216. [cleanup] Fix a number of errors reported by Coverity.
[RT #17094]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: sdb.c,v 1.58 2007/06/18 23:47:41 tbox Exp $ */
|
||||
/* $Id: sdb.c,v 1.59 2007/08/27 03:32:27 marka Exp $ */
|
||||
|
||||
/*! \file */
|
||||
|
||||
@@ -121,6 +121,10 @@ typedef struct sdb_rdatasetiter {
|
||||
/* This is a reasonable value */
|
||||
#define SDB_DEFAULT_TTL (60 * 60 * 24)
|
||||
|
||||
#ifdef __COVERITY__
|
||||
#define MAYBE_LOCK(sdb) LOCK(&sdb->implementation->driverlock)
|
||||
#define MAYBE_UNLOCK(sdb) UNLOCK(&sdb->implementation->driverlock)
|
||||
#else
|
||||
#define MAYBE_LOCK(sdb) \
|
||||
do { \
|
||||
unsigned int flags = sdb->implementation->flags; \
|
||||
@@ -134,6 +138,7 @@ typedef struct sdb_rdatasetiter {
|
||||
if ((flags & DNS_SDBFLAG_THREADSAFE) == 0) \
|
||||
UNLOCK(&sdb->implementation->driverlock); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
static int dummy;
|
||||
|
||||
|
Reference in New Issue
Block a user