summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-05 16:32:30 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-05 16:32:30 +0300
commitbb71639f640286960e1e4a3ed3d0faefa52506e4 (patch)
tree6935d62af3588756ab526d2cff3fb75b8444ade9
parent14c4e44a0a91e1ad701d4ae3c58185d25118e64e (diff)
MRA: fix for occasional crash
-rw-r--r--protocols/ICQ-WIM/src/mra.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/ICQ-WIM/src/mra.cpp b/protocols/ICQ-WIM/src/mra.cpp
index 751734e43b..0ff9db1ad3 100644
--- a/protocols/ICQ-WIM/src/mra.cpp
+++ b/protocols/ICQ-WIM/src/mra.cpp
@@ -19,7 +19,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
void CIcqProto::SendMrimLogin(MHttpResponse *pReply)
{
- m_szMraCookie = pReply->GetCookies();
+ if (pReply)
+ m_szMraCookie = pReply->GetCookies();
auto *pReq = new AsyncHttpRequest(CONN_NONE, REQUEST_POST, "https://icqapilogin.mail.ru/auth/mrimLogin", &CIcqProto::OnCheckMrimLogin);
pReq->AddHeader("User-Agent", NETLIB_USER_AGENT);