BIND 10 master, updated. c0eb91022adc9d00b60902c6345a9ae8b319b856 [master] make sure temporary renderer buffer is reset after query processing.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Mar 15 21:27:41 UTC 2012


The branch, master has been updated
       via  c0eb91022adc9d00b60902c6345a9ae8b319b856 (commit)
      from  0f1e080b028eb0ef89f88ba41ffc8e701888a8f6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c0eb91022adc9d00b60902c6345a9ae8b319b856
Author: JINMEI Tatuya <jinmei at isc.org>
Date:   Thu Mar 15 14:24:34 2012 -0700

    [master] make sure temporary renderer buffer is reset after query processing.
    
    otherwise it could result in duplicate free.  This basically recovers the
    same behavior of d5ec40dace9fddaaec9873cfca2d670e8d35650a that was lost
    in commit 699068ef1467867fbbb86cfebc20e823c5128100.

-----------------------------------------------------------------------

Summary of changes:
 src/bin/auth/auth_srv.cc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/auth/auth_srv.cc b/src/bin/auth/auth_srv.cc
index 5bef3f8..2e1df09 100644
--- a/src/bin/auth/auth_srv.cc
+++ b/src/bin/auth/auth_srv.cc
@@ -578,8 +578,9 @@ AuthSrvImpl::processNormalQuery(const IOMessage& io_message, Message& message,
     } else {
         message.toWire(renderer_);
     }
+    renderer_.setBuffer(NULL);
     LOG_DEBUG(auth_logger, DBG_AUTH_MESSAGES, AUTH_SEND_NORMAL_RESPONSE)
-              .arg(renderer_.getLength()).arg(message.toText());
+              .arg(renderer_.getLength()).arg(message);
     return (true);
 }
 
@@ -704,6 +705,7 @@ AuthSrvImpl::processNotify(const IOMessage& io_message, Message& message,
     } else {
         message.toWire(renderer_);
     }
+    renderer_.setBuffer(NULL);
     return (true);
 }
 



More information about the bind10-changes mailing list