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

sorber pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit ec4a19aa8b2468d5be65ab77283d8e6f2c1aa657
Author: Phil Sorber <[email protected]>
AuthorDate: Wed Sep 28 08:26:01 2016 -0600

    TS-4699: Fix CID 1363288
---
 lib/atscppapi/examples/websocket/WSBuffer.cc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/atscppapi/examples/websocket/WSBuffer.cc 
b/lib/atscppapi/examples/websocket/WSBuffer.cc
index b6aaf41..5cefa34 100644
--- a/lib/atscppapi/examples/websocket/WSBuffer.cc
+++ b/lib/atscppapi/examples/websocket/WSBuffer.cc
@@ -181,7 +181,9 @@ WSBuffer::ws_digest(std::string const &key)
   char digest_buf[WS_DIGEST_MAX];
   size_t digest_len = 0;
 
-  TSBase64Encode((char *)hash_buf, hash_len, digest_buf, WS_DIGEST_MAX, 
&digest_len);
+  if (TSBase64Encode((char *)hash_buf, hash_len, digest_buf, WS_DIGEST_MAX, 
&digest_len) != TS_SUCCESS) {
+    return "base64encode-failed";
+  }
 
   return std::string((char *)digest_buf, digest_len);
 }

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to