server might crash if uint64_t value was actually negative
authorimarom <[email protected]>
Tue, 16 Feb 2016 12:27:01 +0000 (07:27 -0500)
committerimarom <[email protected]>
Tue, 16 Feb 2016 12:27:01 +0000 (07:27 -0500)
src/rpc-server/trex_rpc_cmd.cpp

index f877986..77869d0 100644 (file)
@@ -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;