fix a call to fatal() where the entire mesage wasn't printed due to an
extra comma; add ISC_FORMAT_PRINTF() to the declaration of fatal. [RT #1460]
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: rndc.c,v 1.65 2001/06/22 17:22:25 tale Exp $ */
|
||||
/* $Id: rndc.c,v 1.66 2001/07/01 17:36:46 bwelling Exp $ */
|
||||
|
||||
/*
|
||||
* Principal Author: DCL
|
||||
@@ -196,7 +196,7 @@ rndc_recvdone(isc_task_t *task, isc_event_t *event) {
|
||||
recvs--;
|
||||
|
||||
if (ccmsg.result == ISC_R_EOF)
|
||||
fatal("connection to remote host closed\n",
|
||||
fatal("connection to remote host closed\n"
|
||||
"This may indicate that the remote server is using "
|
||||
"an older version of the\n"
|
||||
"command protocol, this host is not authorized "
|
||||
|
||||
@@ -15,13 +15,15 @@
|
||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: util.h,v 1.1 2001/06/22 17:22:26 tale Exp $ */
|
||||
/* $Id: util.h,v 1.2 2001/07/01 17:36:47 bwelling Exp $ */
|
||||
|
||||
#ifndef RNDC_UTIL_H
|
||||
#define RNDC_UTIL_H 1
|
||||
|
||||
#include <isc/lang.h>
|
||||
|
||||
#include <isc/formatcheck.h>
|
||||
|
||||
#define NS_CONTROL_PORT 953
|
||||
|
||||
#undef DO
|
||||
@@ -40,7 +42,7 @@ void
|
||||
notify(const char *fmt, ...);
|
||||
|
||||
void
|
||||
fatal(const char *format, ...);
|
||||
fatal(const char *format, ...) ISC_FORMAT_PRINTF(1, 2);
|
||||
|
||||
ISC_LANG_ENDDECLS
|
||||
|
||||
|
||||
Reference in New Issue
Block a user