diff options
Diffstat (limited to 'protocols/SkypeWeb/src/skype_trouter.cpp')
-rw-r--r-- | protocols/SkypeWeb/src/skype_trouter.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/protocols/SkypeWeb/src/skype_trouter.cpp b/protocols/SkypeWeb/src/skype_trouter.cpp index 767398ea29..b3452e8ce8 100644 --- a/protocols/SkypeWeb/src/skype_trouter.cpp +++ b/protocols/SkypeWeb/src/skype_trouter.cpp @@ -25,10 +25,11 @@ LBL_Error: return;
}
- JSONNode root = JSONNode::parse(response->pData);
- if (!root)
+ JsonReply reply(response);
+ if (reply.error())
goto LBL_Error;
+ auto &root = reply.data();
const JSONNode &ccid = root["ccid"];
const JSONNode &connId = root["connId"];
const JSONNode &instance = root["instance"];
@@ -55,10 +56,11 @@ LBL_Error: return;
}
- JSONNode root = JSONNode::parse(response->pData);
- if (!root)
+ JsonReply reply(response);
+ if (reply.error())
goto LBL_Error;
+ auto &root = reply.data();
const JSONNode &st = root["st"];
const JSONNode &se = root["se"];
const JSONNode &sig = root["sig"];
|