summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-06-06 13:06:31 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-06-06 13:06:31 +0300
commit3361e425ebf5299db1187c6e8e1e808637c01cf7 (patch)
tree7db8009e5e9d6c42c72e4dcbfd66b76896ce27ac
parent7c12d73cd69458a9b1007e8d8c1d2c4ac18b4e4c (diff)
MSN: fix for token expiration time's calculation
-rw-r--r--protocols/MSN/src/msn_auth.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}
}
}