Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
LDIF 1.72 KB | None | 0 0
  1. diff --git a/lib/ts/apidefs.h.in b/lib/ts/apidefs.h.in
  2. index 4f0ada31f..13b5fb7c6 100644
  3. --- a/lib/ts/apidefs.h.in
  4. +++ b/lib/ts/apidefs.h.in
  5. @@ -1202,7 +1202,7 @@ typedef enum {
  6.  } TSUuidVersion;
  7.  
  8.  #define TS_UUID_STRING_LEN 36
  9. -#define TS_CRUUID_STRING_LEN (TS_UUID_STRING_LEN + 20 + 1) /* UUID-len + len(int64_t) + '-' */
  10. +#define TS_CRUUID_STRING_LEN (TS_UUID_STRING_LEN + 20 + 2) /* UUID-len + len(int64_t) + '-' + '\n' */
  11.  typedef struct tsapi_uuid *TSUuid;
  12.  
  13.  #ifdef __cplusplus
  14. diff --git a/plugins/header_rewrite/conditions.cc b/plugins/header_rewrite/conditions.cc
  15. index 4b57dbabb..37cb06b3f 100644
  16. --- a/plugins/header_rewrite/conditions.cc
  17. +++ b/plugins/header_rewrite/conditions.cc
  18. @@ -1051,7 +1051,7 @@ ConditionId::append_value(std::string &s, const Resources &res ATS_UNUSED)
  19.      }
  20.    } break;
  21.    case ID_QUAL_UNIQUE: {
  22. -    char uuid[TS_CRUUID_STRING_LEN + 1];
  23. +    char uuid[TS_CRUUID_STRING_LEN];
  24.  
  25.      if (TS_SUCCESS == TSClientRequestUuidGet(res.txnp, uuid)) {
  26.        s += uuid;
  27. diff --git a/proxy/logging/LogAccessHttp.cc b/proxy/logging/LogAccessHttp.cc
  28. index 7100c8121..504bee67c 100644
  29. --- a/proxy/logging/LogAccessHttp.cc
  30. +++ b/proxy/logging/LogAccessHttp.cc
  31. @@ -781,7 +781,7 @@ int
  32.  LogAccessHttp::marshal_client_req_uuid(char *buf)
  33.  {
  34.    if (buf) {
  35. -    char str[TS_CRUUID_STRING_LEN + 1];
  36. +    char str[TS_CRUUID_STRING_LEN];
  37.      const char *uuid = (char *)Machine::instance()->uuid.getString();
  38.      int len;
  39.  
  40. @@ -793,7 +793,7 @@ LogAccessHttp::marshal_client_req_uuid(char *buf)
  41.      return len;
  42.    }
  43.  
  44. -  return round_strlen(TS_CRUUID_STRING_LEN + 1);
  45. +  return round_strlen(TS_CRUUID_STRING_LEN);
  46.  }
  47.  
  48.  /*-------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement