trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shinr...@apache.org
Subject [trafficserver] branch master updated: Add pointer check in TSHttpTxnAborted (#8093)
Date Tue, 20 Jul 2021 14:15:41 GMT
This is an automated email from the ASF dual-hosted git repository.

shinrich pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 4124abf  Add pointer check in TSHttpTxnAborted (#8093)
4124abf is described below

commit 4124abf1e6959a4911265bd15ddd40fb24c5952f
Author: YuanYingdong <1975643103@qq.com>
AuthorDate: Tue Jul 20 22:15:30 2021 +0800

    Add pointer check in TSHttpTxnAborted (#8093)
    
    Co-authored-by: yingdongyuan <yingdongyuan@deeproute.ai>
---
 src/traffic_server/InkAPI.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/traffic_server/InkAPI.cc b/src/traffic_server/InkAPI.cc
index ebe7ab9..427c6f1 100644
--- a/src/traffic_server/InkAPI.cc
+++ b/src/traffic_server/InkAPI.cc
@@ -5679,6 +5679,7 @@ TSReturnCode
 TSHttpTxnAborted(TSHttpTxn txnp, bool *client_abort)
 {
   sdk_assert(sdk_sanity_check_txn(txnp) == TS_SUCCESS);
+  sdk_assert(client_abort != nullptr);
 
   *client_abort = false;
   HttpSM *sm    = (HttpSM *)txnp;

Mime
View raw message