Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/bind/dist/bin/named remove debugging.



details:   https://anonhg.NetBSD.org/src/rev/5c5fa4f9282d
branches:  trunk
changeset: 335827:5c5fa4f9282d
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 25 16:17:20 2015 +0000

description:
remove debugging.

diffstat:

 external/bsd/bind/dist/bin/named/pfilter.c |  20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diffs (41 lines):

diff -r a51a1e18f484 -r 5c5fa4f9282d external/bsd/bind/dist/bin/named/pfilter.c
--- a/external/bsd/bind/dist/bin/named/pfilter.c        Sun Jan 25 15:52:44 2015 +0000
+++ b/external/bsd/bind/dist/bin/named/pfilter.c        Sun Jan 25 16:17:20 2015 +0000
@@ -23,7 +23,6 @@
 void
 pfilter_notify(isc_result_t res, ns_client_t *client, const char *msg)
 {
-       int rv;
        isc_socket_t *socket;
 
        pfilter_open();
@@ -32,22 +31,17 @@
                socket = client->tcpsocket;
        else {
                socket = client->udpsocket;
-               if (!client->peeraddr_valid) {
-                       syslog(LOG_ERR, "no peer res=%d\n", res);
+               if (!client->peeraddr_valid)
                        return;
-               }
        }
-       if (socket == NULL) {
-               syslog(LOG_ERR, "null socket res=%d\n", res);
+
+       if (socket == NULL)
                return;
-       }
-       if (blstate == NULL) {
-               syslog(LOG_ERR, "null blstate res=%d\n", res);
+
+       if (blstate == NULL)
                return;
-       }
-       rv = blacklist_sa_r(blstate, 
+
+       blacklist_sa_r(blstate, 
            res != ISC_R_SUCCESS, isc_socket_getfd(socket),
            &client->peeraddr.type.sa, client->peeraddr.length, msg);
-       if (rv || res != ISC_R_SUCCESS)
-               syslog(LOG_ERR, "blacklist rv=%d res=%d\n", rv, res);
 }



Home | Main Index | Thread Index | Old Index