Skip to content
Browse files

Fix wrongly handled absence of candidates

Accoding to json-glib documentation:

"If reader is not currently on an object, or if the member_name is not defined in the object, the JsonReader will be put in an error state until json_reader_end_member() is called. This means that if used conditionally, json_reader_end_member() must be called on both code paths."

Closes #665.
  • Loading branch information
danips authored and superdump committed Jan 5, 2017
1 parent 3a22666 commit 4d89381a7562e5270d506124542da7fb068c0769
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/test_client.c
@@ -583,8 +583,8 @@ static void handle_offer(JsonReader *reader)
json_reader_end_member(reader); /* candidates */
json_reader_end_member(reader); /* candidates */
json_reader_end_member(reader); /* ice */


0 comments on commit 4d89381

Please sign in to comment.
You can’t perform that action at this time.