Commit 18ceea00 authored by Kristof Szabados's avatar Kristof Szabados
Browse files
parent 8795b029
...@@ -475,6 +475,9 @@ public class TitanCharacter_String_identification_context__negotiation extends B ...@@ -475,6 +475,9 @@ public class TitanCharacter_String_identification_context__negotiation extends B
dec_len += ret_val; dec_len += ret_val;
} }
else { else {
if (p_silent) {
return JSON.JSON_ERROR_INVALID_TOKEN;
}
JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name); JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name);
dec_len += p_tok.get_next_token(j_token, null, null); dec_len += p_tok.get_next_token(j_token, null, null);
if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() && if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() &&
......
...@@ -475,6 +475,9 @@ public class TitanCharacter_String_identification_syntaxes extends Base_Type { ...@@ -475,6 +475,9 @@ public class TitanCharacter_String_identification_syntaxes extends Base_Type {
dec_len += ret_val; dec_len += ret_val;
} }
else { else {
if (p_silent) {
return JSON.JSON_ERROR_INVALID_TOKEN;
}
JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name); JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name);
dec_len += p_tok.get_next_token(j_token, null, null); dec_len += p_tok.get_next_token(j_token, null, null);
if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() && if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() &&
......
...@@ -474,6 +474,9 @@ public class TitanEmbedded_PDV_identification_context__negotiation extends Base_ ...@@ -474,6 +474,9 @@ public class TitanEmbedded_PDV_identification_context__negotiation extends Base_
dec_len += ret_val; dec_len += ret_val;
} }
else { else {
if (p_silent) {
return JSON.JSON_ERROR_INVALID_TOKEN;
}
JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name); JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name);
dec_len += p_tok.get_next_token(j_token, null, null); dec_len += p_tok.get_next_token(j_token, null, null);
if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() && if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() &&
......
...@@ -474,6 +474,9 @@ public class TitanEmbedded_PDV_identification_syntaxes extends Base_Type { ...@@ -474,6 +474,9 @@ public class TitanEmbedded_PDV_identification_syntaxes extends Base_Type {
dec_len += ret_val; dec_len += ret_val;
} }
else { else {
if (p_silent) {
return JSON.JSON_ERROR_INVALID_TOKEN;
}
JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name); JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name);
dec_len += p_tok.get_next_token(j_token, null, null); dec_len += p_tok.get_next_token(j_token, null, null);
if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() && if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() &&
......
...@@ -474,6 +474,9 @@ public class TitanExternal_identification_context__negotiation extends Base_Type ...@@ -474,6 +474,9 @@ public class TitanExternal_identification_context__negotiation extends Base_Type
dec_len += ret_val; dec_len += ret_val;
} }
else { else {
if (p_silent) {
return JSON.JSON_ERROR_INVALID_TOKEN;
}
JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name); JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name);
dec_len += p_tok.get_next_token(j_token, null, null); dec_len += p_tok.get_next_token(j_token, null, null);
if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() && if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() &&
......
...@@ -474,6 +474,9 @@ public class TitanExternal_identification_syntaxes extends Base_Type { ...@@ -474,6 +474,9 @@ public class TitanExternal_identification_syntaxes extends Base_Type {
dec_len += ret_val; dec_len += ret_val;
} }
else { else {
if (p_silent) {
return JSON.JSON_ERROR_INVALID_TOKEN;
}
JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name); JSON_ERROR(p_silent, error_type.ET_INVAL_MSG, JSON.JSON_DEC_INVALID_NAME_ERROR, fld_name);
dec_len += p_tok.get_next_token(j_token, null, null); dec_len += p_tok.get_next_token(j_token, null, null);
if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() && if (json_token_t.JSON_TOKEN_NUMBER != j_token.get() && json_token_t.JSON_TOKEN_STRING != j_token.get() &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment