Parcourir la source

JSON: Fix a forgotten token advancement

Julius Pfrommer il y a 6 ans
Parent
commit
75795003fb
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      src/ua_types_encoding_json.c

+ 2 - 0
src/ua_types_encoding_json.c

@@ -2069,6 +2069,8 @@ DECODE_JSON(String) {
     if(tokenSize == 0) {
         dst->data = (UA_Byte*)UA_EMPTY_ARRAY_SENTINEL;
         dst->length = 0;
+        if(moveToken)
+            parseCtx->index++;
         return UA_STATUSCODE_GOOD;
     }