Module Name:    src
Committed By:   christos
Date:           Sun Jan 25 16:17:20 UTC 2015

Modified Files:
        src/external/bsd/bind/dist/bin/named: pfilter.c

Log Message:
remove debugging.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/external/bsd/bind/dist/bin/named/pfilter.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/bind/dist/bin/named/pfilter.c
diff -u src/external/bsd/bind/dist/bin/named/pfilter.c:1.1 src/external/bsd/bind/dist/bin/named/pfilter.c:1.2
--- src/external/bsd/bind/dist/bin/named/pfilter.c:1.1	Sun Jan 25 10:52:12 2015
+++ src/external/bsd/bind/dist/bin/named/pfilter.c	Sun Jan 25 11:17:20 2015
@@ -23,7 +23,6 @@ pfilter_open(void)
 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 @@ pfilter_notify(isc_result_t res, ns_clie
 		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);
 }

Reply via email to