diff options
author | imarom <imarom@cisco.com> | 2016-02-16 07:27:01 -0500 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2016-02-16 07:27:01 -0500 |
commit | 6b29aafe2b19731dc222a83bbaec288139866e32 (patch) | |
tree | be78ea46e35525b848ef7d184bdd254376948e93 | |
parent | 0bc8b0acfb2d2e158c7b41bc398aef3137087859 (diff) |
server might crash if uint64_t value was actually negative
-rw-r--r-- | src/rpc-server/trex_rpc_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc-server/trex_rpc_cmd.cpp b/src/rpc-server/trex_rpc_cmd.cpp index f8779860..77869d0d 100644 --- a/src/rpc-server/trex_rpc_cmd.cpp +++ b/src/rpc-server/trex_rpc_cmd.cpp @@ -206,7 +206,7 @@ TrexRpcCommand::check_field_type_common(const Json::Value &field, const std::str break; case FIELD_TYPE_UINT64: - if (!field.isInt64()) { + if (!field.isUInt64()) { rc = false; } break; |