summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimarom <imarom@cisco.com>2016-02-16 07:27:01 -0500
committerimarom <imarom@cisco.com>2016-02-16 07:27:01 -0500
commit6b29aafe2b19731dc222a83bbaec288139866e32 (patch)
treebe78ea46e35525b848ef7d184bdd254376948e93
parent0bc8b0acfb2d2e158c7b41bc398aef3137087859 (diff)
server might crash if uint64_t value was actually negative
-rw-r--r--src/rpc-server/trex_rpc_cmd.cpp2
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;