]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2070. [bug] The remote address was not always displayed when
authorMark Andrews <marka@isc.org>
Thu, 10 Aug 2006 01:43:04 +0000 (01:43 +0000)
committerMark Andrews <marka@isc.org>
Thu, 10 Aug 2006 01:43:04 +0000 (01:43 +0000)
                        reporting dispatch failures. [RT #16315]

CHANGES
lib/dns/tcpmsg.c

diff --git a/CHANGES b/CHANGES
index e0036d8dc37a96bb8c3c29745b6640aaf7c4c666..fb898552a68cdd56383acd5257c0c9f46b27ed27 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+2070.  [bug]           The remote address was not always displayed when
+                       reporting dispatch failures. [RT #16315]
+
 2069.  [bug]           Cross compiling was not working. [RT #16330]
 
 
index 4400a3a58f7fba17a1f947cc036a3c903dbda747..1a77a14c9c171b3be6d36ab43bbe75b733d4b5a3 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: tcpmsg.c,v 1.24.206.1 2004/03/06 08:13:46 marka Exp $ */
+/* $Id: tcpmsg.c,v 1.24.206.2 2006/08/10 01:43:04 marka Exp $ */
 
 #include <config.h>
 
@@ -52,6 +52,7 @@ recv_length(isc_task_t *task, isc_event_t *ev_in) {
        INSIST(VALID_TCPMSG(tcpmsg));
 
        dev = &tcpmsg->event;
+       tcpmsg->address = ev->address;
 
        if (ev->result != ISC_R_SUCCESS) {
                tcpmsg->result = ev->result;
@@ -108,6 +109,7 @@ recv_message(isc_task_t *task, isc_event_t *ev_in) {
        INSIST(VALID_TCPMSG(tcpmsg));
 
        dev = &tcpmsg->event;
+       tcpmsg->address = ev->address;
 
        if (ev->result != ISC_R_SUCCESS) {
                tcpmsg->result = ev->result;
@@ -116,7 +118,6 @@ recv_message(isc_task_t *task, isc_event_t *ev_in) {
 
        tcpmsg->result = ISC_R_SUCCESS;
        isc_buffer_add(&tcpmsg->buffer, ev->n);
-       tcpmsg->address = ev->address;
 
        XDEBUG(("Received %d bytes (of %d)\n", ev->n, tcpmsg->size));