trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject git commit: TS-1716: authproxy fails to reserve an argument index in global mode
Date Thu, 21 Feb 2013 04:12:08 GMT
Updated Branches:
  refs/heads/master c66505124 -> 07ff39981


TS-1716: authproxy fails to reserve an argument index in global mode


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/07ff3998
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/07ff3998
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/07ff3998

Branch: refs/heads/master
Commit: 07ff39981e968a3a3985796c7afa22eb2568f8a2
Parents: c665051
Author: James Peach <jpeach@apache.org>
Authored: Wed Feb 20 20:11:48 2013 -0800
Committer: James Peach <jpeach@apache.org>
Committed: Wed Feb 20 20:11:48 2013 -0800

----------------------------------------------------------------------
 CHANGES                                     |    3 +++
 plugins/experimental/authproxy/authproxy.cc |    4 ++++
 2 files changed, 7 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/07ff3998/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index 01c2928..541cea0 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 3.3.1
 
+
+  *) [TS-1716] authproxy fails to reserve an argument index in global mode
+
   *) [TS-1710] esi plugin enhancement such as support forward proxy
    Author: Yu Qing <zhuangyuan@taobao.com>
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/07ff3998/plugins/experimental/authproxy/authproxy.cc
----------------------------------------------------------------------
diff --git a/plugins/experimental/authproxy/authproxy.cc b/plugins/experimental/authproxy/authproxy.cc
index 434dd60..6479976 100644
--- a/plugins/experimental/authproxy/authproxy.cc
+++ b/plugins/experimental/authproxy/authproxy.cc
@@ -773,6 +773,10 @@ TSPluginInit(int argc, const char *argv[])
         AuthLogError("plugin registration failed");
     }
 
+    TSReleaseAssert(
+        TSHttpArgIndexReserve("AuthProxy", "AuthProxy authorization tag", &AuthTaggedRequestArg)
== TS_SUCCESS
+    );
+
     // We are in global mode. Authorize all requests.
     AuthTaggedRequestOnly = false;
 


Mime
View raw message