mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 15:05:23 +00:00
redo 1.64 "potential null pointer dereference" more consistent with the style
of the function and file (i.e., not returning from the middle of a function)
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: log.c,v 1.66 2001/06/08 02:57:13 marka Exp $ */
|
/* $Id: log.c,v 1.67 2001/06/10 17:06:45 tale Exp $ */
|
||||||
|
|
||||||
/* Principal Authors: DCL */
|
/* Principal Authors: DCL */
|
||||||
|
|
||||||
@@ -339,7 +339,7 @@ isc_logconfig_create(isc_log_t *lctx, isc_logconfig_t **lcfgp) {
|
|||||||
lcfg->magic = LCFG_MAGIC;
|
lcfg->magic = LCFG_MAGIC;
|
||||||
|
|
||||||
} else
|
} else
|
||||||
return (ISC_R_NOMEMORY);
|
result = ISC_R_NOMEMORY;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create the default channels:
|
* Create the default channels:
|
||||||
@@ -364,13 +364,14 @@ isc_logconfig_create(isc_log_t *lctx, isc_logconfig_t **lcfgp) {
|
|||||||
ISC_LOG_PRINTTIME);
|
ISC_LOG_PRINTTIME);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* Set the default category's channel to default_stderr, which
|
|
||||||
* is at the head of the channels list because it was just created.
|
|
||||||
*/
|
|
||||||
default_channel.channel = ISC_LIST_HEAD(lcfg->channels);
|
|
||||||
|
|
||||||
if (result == ISC_R_SUCCESS) {
|
if (result == ISC_R_SUCCESS) {
|
||||||
|
/*
|
||||||
|
* Set the default category's channel to default_stderr,
|
||||||
|
* which is at the head of the channels list because it was
|
||||||
|
* just created.
|
||||||
|
*/
|
||||||
|
default_channel.channel = ISC_LIST_HEAD(lcfg->channels);
|
||||||
|
|
||||||
destination.file.stream = stderr;
|
destination.file.stream = stderr;
|
||||||
destination.file.name = NULL;
|
destination.file.name = NULL;
|
||||||
destination.file.versions = ISC_LOG_ROLLNEVER;
|
destination.file.versions = ISC_LOG_ROLLNEVER;
|
||||||
|
Reference in New Issue
Block a user