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 2020/02/21 17:54:40 UTC

[trafficserver] branch 9.0.x updated: Syntax Error fixed in URI sig Plugin (#6420)

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

zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.0.x by this push:
     new 4809307  Syntax Error fixed in URI sig Plugin (#6420)
4809307 is described below

commit 480930771d9245a3dac8bf62dc30383c9199da88
Author: Dylan Souza <dy...@gmail.com>
AuthorDate: Thu Feb 13 16:51:27 2020 -0700

    Syntax Error fixed in URI sig Plugin (#6420)
    
    (cherry picked from commit c154d40e53949a53f0cf79626868075a9d330f68)
---
 plugins/experimental/uri_signing/normalize.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/experimental/uri_signing/normalize.c b/plugins/experimental/uri_signing/normalize.c
index 8e350bf..cd47586 100644
--- a/plugins/experimental/uri_signing/normalize.c
+++ b/plugins/experimental/uri_signing/normalize.c
@@ -218,7 +218,7 @@ normalize_uri(const char *uri, int uri_ct, char *normal_uri, int normal_ct)
   const char *uri_end  = uri + uri_ct;
   const char *buff_end = normal_uri + normal_ct;
 
-  if ((normal_uri == null) || (normal_uri && normal_ct < uri_ct + 1)) {
+  if ((normal_uri == NULL) || (normal_uri && normal_ct < uri_ct + 1)) {
     PluginDebug("Buffer to Normalize URI not large enough.");
     return -1;
   }