You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by zw...@apache.org on 2016/04/27 21:38:14 UTC

[trafficserver] branch 6.1.x updated (0b22c17 -> dd61baa)

This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a change to branch 6.1.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git.

      from  0b22c17   Update CHANGES with latest backports to 6.1.2
       new  a435c51   TS-4329 Off-by-one error in NULL terminator for aname in hostdb
       new  dd61baa   Fix invalid condition in blacklist plugin example.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 example/blacklist-0/blacklist-0.c | 2 +-
 iocore/hostdb/HostDB.cc           | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].

[trafficserver] 01/02: TS-4329 Off-by-one error in NULL terminator for aname in hostdb

Posted by zw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 6.1.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit a435c51a08c29bb356816882b232519504779b58
Author: Thomas Jackson <ja...@apache.org>
AuthorDate: Wed Apr 6 21:06:20 2016 -0700

    TS-4329 Off-by-one error in NULL terminator for aname in hostdb
    
    This closes #555
    
    (cherry picked from commit 0926cf698fe804dd83bcf44fbe594a164d3aaf1f)
---
 iocore/hostdb/HostDB.cc | 1 -
 1 file changed, 1 deletion(-)

diff --git a/iocore/hostdb/HostDB.cc b/iocore/hostdb/HostDB.cc
index eb5b541..5b4cabf 100644
--- a/iocore/hostdb/HostDB.cc
+++ b/iocore/hostdb/HostDB.cc
@@ -1370,7 +1370,6 @@ HostDBContinuation::lookup_done(IpAddr const &ip, char const *aname, bool around
     void *host_dest = hostDB.alloc(&i->hostname_offset, s_size);
     if (host_dest) {
       ink_strlcpy((char *)host_dest, aname, s_size);
-      *((char *)host_dest + s_size) = '\0';
     } else {
       Warning("Out of room in hostdb for hostname (data area full!)");
       hostDB.delete_block(i);

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.

[trafficserver] 02/02: Fix invalid condition in blacklist plugin example.

Posted by zw...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 6.1.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit dd61baaae84e6b32b782c256aad57188b51f804e
Author: James Peach <jp...@apache.org>
AuthorDate: Thu Mar 24 09:19:41 2016 -0700

    Fix invalid condition in blacklist plugin example.
    
    (cherry picked from commit ec7bd826816820d4a24ec103018f8d236d37a623)
---
 example/blacklist-0/blacklist-0.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/example/blacklist-0/blacklist-0.c b/example/blacklist-0/blacklist-0.c
index 51850c5..003f5c0 100644
--- a/example/blacklist-0/blacklist-0.c
+++ b/example/blacklist-0/blacklist-0.c
@@ -107,7 +107,7 @@ handle_response(TSHttpTxn txnp)
     goto done;
   }
 
-  if (!TSHttpHdrUrlGet(bufp, hdr_loc, &url_loc) != TS_SUCCESS) {
+  if (TSHttpHdrUrlGet(bufp, hdr_loc, &url_loc) != TS_SUCCESS) {
     TSError("[blacklist-0] Couldn't retrieve request url");
     TSHandleMLocRelease(bufp, TS_NULL_MLOC, hdr_loc);
     goto done;

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.