From: Mark Andrews Date: Mon, 2 Apr 2007 23:46:47 +0000 (+0000) Subject: s/view->name/viewname/ X-Git-Tag: v9.5.0a3~5 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0a19afabe84dd8f01774362bf8d65e1fc992b2b3;p=thirdparty%2Fbind9.git s/view->name/viewname/ --- diff --git a/bin/named/server.c b/bin/named/server.c index c4b487c8d87..931d0ab76dd 100644 --- a/bin/named/server.c +++ b/bin/named/server.c @@ -15,7 +15,7 @@ * PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: server.c,v 1.481 2007/04/02 23:17:52 marka Exp $ */ +/* $Id: server.c,v 1.482 2007/04/02 23:46:47 marka Exp $ */ /*! \file */ @@ -4869,12 +4869,14 @@ ns_server_flushcache(ns_server_t *server, char *args) { "flushing caches in all views succeeded"); result = ISC_R_SUCCESS; } else { - if (!found) + if (!found) { isc_log_write(ns_g_lctx, NS_LOGCATEGORY_GENERAL, NS_LOGMODULE_SERVER, ISC_LOG_ERROR, "flushing cache in view '%s' failed: " - "view not found", view->name); - result = ISC_R_FAILURE; + "view not found", viewname); + result = ISC_R_NOTFOUND; + } else + result = ISC_R_FAILURE; } isc_task_endexclusive(server->task); return (result);