trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject [trafficserver] branch master updated: Fixed nullptr check in cookie remap
Date Wed, 08 May 2019 18:30:43 GMT
This is an automated email from the ASF dual-hosted git repository.

bcall 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 b76b532  Fixed nullptr check in cookie remap
b76b532 is described below

commit b76b532128452072ae9570cd053030c532dda047
Author: Bryan Call <bcall@apache.org>
AuthorDate: Wed May 8 10:43:57 2019 -0700

    Fixed nullptr check in cookie remap
---
 plugins/experimental/cookie_remap/strip.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/experimental/cookie_remap/strip.cc b/plugins/experimental/cookie_remap/strip.cc
index 0302f53..bef3881 100644
--- a/plugins/experimental/cookie_remap/strip.cc
+++ b/plugins/experimental/cookie_remap/strip.cc
@@ -48,7 +48,7 @@ room(const char *p, const int len, const char *maxp)
 static void
 write_char_if_room(char **p, const char *maxp, const char c)
 {
-  if (p == nullptr || *p != nullptr) {
+  if (p == nullptr || *p == nullptr) {
     return;
   }
 
@@ -64,7 +64,7 @@ write_char_if_room(char **p, const char *maxp, const char c)
 static void
 write_spaces_if_room(char **p, const char *maxp, int &slen)
 {
-  if (p == nullptr || *p != nullptr) {
+  if (p == nullptr || *p == nullptr) {
     return;
   }
 


Mime
View raw message