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 2016/10/27 03:27:47 UTC
[trafficserver] branch master updated: TS-4865: Fix CID 1362785,
CID 1362784
This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new e0ded20 TS-4865: Fix CID 1362785, CID 1362784
e0ded20 is described below
commit e0ded200e867a2b1782ae681f195b6a2b8a85e96
Author: Masaori Koshiba <ma...@apache.org>
AuthorDate: Thu Oct 27 03:59:32 2016 +0900
TS-4865: Fix CID 1362785, CID 1362784
---
example/server-push/server-push.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/example/server-push/server-push.c b/example/server-push/server-push.c
index fd1d378..da256e1 100644
--- a/example/server-push/server-push.c
+++ b/example/server-push/server-push.c
@@ -47,8 +47,12 @@ should_push(TSHttpTxn txnp)
{
TSMBuffer mbuf;
TSMLoc hdr, url;
- TSHttpTxnClientReqGet(txnp, &mbuf, &hdr);
- TSHttpHdrUrlGet(mbuf, hdr, &url);
+ if (TSHttpTxnClientReqGet(txnp, &mbuf, &hdr) != TS_SUCCESS) {
+ return false;
+ }
+ if (TSHttpHdrUrlGet(mbuf, hdr, &url) != TS_SUCCESS) {
+ return false;
+ }
int len;
TSUrlHttpQueryGet(mbuf, url, &len);
TSHandleMLocRelease(mbuf, hdr, url);
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].