Repository: trafficserver Updated Branches: refs/heads/master 0cdda8a14 -> 2e6de25ad
[TS-3438]: Assert if npn protocol is invalid (empty string) Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/dcb63301 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/dcb63301 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/dcb63301 Branch: refs/heads/master Commit: dcb6330105e2ebd8faecdac55b9d0fb349f72e22 Parents: 0cdda8a Author: Sudheer Vinukonda <[email protected]> Authored: Fri Apr 10 21:06:25 2015 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Fri Apr 10 21:06:25 2015 +0000 ---------------------------------------------------------------------- iocore/net/SSLNextProtocolSet.cc | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/dcb63301/iocore/net/SSLNextProtocolSet.cc ---------------------------------------------------------------------- diff --git a/iocore/net/SSLNextProtocolSet.cc b/iocore/net/SSLNextProtocolSet.cc index 751f67a..d543052 100644 --- a/iocore/net/SSLNextProtocolSet.cc +++ b/iocore/net/SSLNextProtocolSet.cc @@ -62,6 +62,7 @@ create_npn_advertisement(const SSLNextProtocolSet::NextProtocolEndpoint::list_ty for (ep = endpoints.head; ep != NULL; ep = endpoints.next(ep)) { Debug("ssl", "advertising protocol %s", ep->protocol); + ink_release_assert((strlen(ep->protocol) > 0)); advertised = append_protocol(ep->protocol, advertised); }
