Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/pidgin-opensteamworks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b>2015-08-21 00:15:01 +0300
committereionrobb <eionrobb@8ca6c67d-4297-256d-f884-781da6d5760b>2015-08-21 00:15:01 +0300
commit05b9fc293aadcf5d21b591635176e622cd5317ab (patch)
treebf042583f07172dc52fe1fb873867ccdb532a398
parente6204c6d317366732cab651934b08f1b053de55f (diff)
Don't crash if we don't get an OAuth response from the server
-rw-r--r--steam-mobile/libsteam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/steam-mobile/libsteam.c b/steam-mobile/libsteam.c
index 7718c70..ac04e3d 100644
--- a/steam-mobile/libsteam.c
+++ b/steam-mobile/libsteam.c
@@ -1183,7 +1183,7 @@ steam_login_cb(SteamAccount *sa, JsonObject *obj, gpointer user_data)
JsonParser *parser = json_parser_new();
const gchar *oauthjson = json_object_get_string_member(obj, "oauth");
- if (!json_parser_load_from_data(parser, oauthjson, strlen(oauthjson), NULL))
+ if (!json_parser_load_from_data(parser, oauthjson, -1, NULL))
{
purple_debug_error("steam", "Error parsing response: %s\n", oauthjson);
purple_connection_error(sa->pc, PURPLE_CONNECTION_ERROR_NETWORK_ERROR, "JSON decoding error");