tcp_info plugin build fix
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/b514248a Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/b514248a Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/b514248a Branch: refs/heads/5.0.x Commit: b514248a7e25a3080bd4abcf2ea5f34933c574ea Parents: e503ce0 Author: James Peach <[email protected]> Authored: Thu Apr 10 15:56:07 2014 -0700 Committer: James Peach <[email protected]> Committed: Thu Apr 10 15:56:07 2014 -0700 ---------------------------------------------------------------------- plugins/experimental/tcp_info/tcp_info.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b514248a/plugins/experimental/tcp_info/tcp_info.cc ---------------------------------------------------------------------- diff --git a/plugins/experimental/tcp_info/tcp_info.cc b/plugins/experimental/tcp_info/tcp_info.cc index c5277a3..7835039 100644 --- a/plugins/experimental/tcp_info/tcp_info.cc +++ b/plugins/experimental/tcp_info/tcp_info.cc @@ -219,7 +219,7 @@ parse_unsigned(const char * str, unsigned long& lval) return false; } - if (end != '\0') { + if (end && *end != '\0') { // Not all charaters consumed. return false; }
