From 3361e425ebf5299db1187c6e8e1e808637c01cf7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 6 Jun 2017 13:06:31 +0300 Subject: MSN: fix for token expiration time's calculation --- protocols/MSN/src/msn_auth.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'protocols') diff --git a/protocols/MSN/src/msn_auth.cpp b/protocols/MSN/src/msn_auth.cpp index a805672f17..37d6208a8d 100644 --- a/protocols/MSN/src/msn_auth.cpp +++ b/protocols/MSN/src/msn_auth.cpp @@ -803,6 +803,8 @@ bool CMsnProto::RefreshOAuth(const char *pszRefreshToken, const char *pszService *ptExpires = (*root)["expires_in"].as_int(); if (*ptExpires == 0) bRet = false; + else + *ptExpires += time(0); } } } -- cgit v1.2.3