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/10/26 22:37:33 UTC

[trafficserver] branch master updated: TS-5005: CID 1364117: Explicit null dereferenced in HttpSM.cc

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

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

The following commit(s) were added to refs/heads/master by this push:
       new  8a168d4   TS-5005: CID 1364117: Explicit null dereferenced in HttpSM.cc
8a168d4 is described below

commit 8a168d4845630145fb47b279383b5c625fed6f28
Author: Leif Hedstrom <zw...@apache.org>
AuthorDate: Wed Oct 26 15:39:16 2016 -0600

    TS-5005: CID 1364117: Explicit null dereferenced in HttpSM.cc
---
 proxy/http/HttpSM.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/proxy/http/HttpSM.cc b/proxy/http/HttpSM.cc
index 3e3e9ad..3841acf 100644
--- a/proxy/http/HttpSM.cc
+++ b/proxy/http/HttpSM.cc
@@ -2122,6 +2122,8 @@ HttpSM::process_hostdb_info(HostDBInfo *r)
       t_state.dns_info.os_addr_style  = HttpTransact::DNSLookupInfo::OS_ADDR_TRY_CLIENT;
       t_state.dns_info.lookup_success = true;
       // Leave ret unassigned, so we don't overwrite the host_db_info
+    } else {
+      use_client_addr = false;
     }
   }
 

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