mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 13:42:06 -04:00
missing va_start() in cfg_obj_log()
This commit is contained in:
parent
f4b5a0f434
commit
f6d45c9539
1 changed files with 4 additions and 3 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: parser.c,v 1.20 2001/02/23 00:15:53 gson Exp $ */
|
||||
/* $Id: parser.c,v 1.21 2001/02/23 04:52:29 tale Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
|
|
@ -3210,14 +3210,15 @@ parser_complain(cfg_parser_t *pctx, isc_boolean_t is_warning,
|
|||
}
|
||||
|
||||
void
|
||||
cfg_obj_log(cfg_obj_t *obj, isc_log_t *lctx, int level, const char *fmt, ...)
|
||||
{
|
||||
cfg_obj_log(cfg_obj_t *obj, isc_log_t *lctx, int level, const char *fmt, ...) {
|
||||
va_list ap;
|
||||
char msgbuf[2048];
|
||||
|
||||
if (! isc_log_wouldlog(lctx, level))
|
||||
return;
|
||||
|
||||
va_start(ap, fmt);
|
||||
|
||||
vsnprintf(msgbuf, sizeof(msgbuf), fmt, ap);
|
||||
isc_log_write(lctx, CAT, MOD, level,
|
||||
"%s:%u: %s",
|
||||
|
|
|
|||
Loading…
Reference in a new issue