diff options
Diffstat (limited to 'protocols/MRA/src/Mra_proto.cpp')
-rw-r--r-- | protocols/MRA/src/Mra_proto.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/MRA/src/Mra_proto.cpp b/protocols/MRA/src/Mra_proto.cpp index caeb8819ae..83c0d89f49 100644 --- a/protocols/MRA/src/Mra_proto.cpp +++ b/protocols/MRA/src/Mra_proto.cpp @@ -13,7 +13,8 @@ DWORD CMraProto::StartConnect() return 0;
CMStringA szEmail;
- mraGetStringA(NULL, "e-mail", szEmail);
+ if (!mraGetStringA(NULL, "e-mail", szEmail))
+ return 0;
CMStringA szPass;
if (szEmail.GetLength() <= 5)
@@ -1647,7 +1648,8 @@ DWORD CMraProto::MraRecvCommand_Message(DWORD dwTime, DWORD dwFlags, CMStringA & InternetTimeGetCurrentTime(&itTime);
CMStringA szTime = InternetTimeGetString(&itTime);
CMStringA szPhone = CopyNumber(plpsFrom), szEmail;
- mraGetStringA(NULL, "e-mail", szEmail);
+ if (!mraGetStringA(NULL, "e-mail", szEmail))
+ return 0;
CMStringW wszMessageXMLEncoded = EncodeXML(wszMessage);
ptrA lpszMessageUTF(mir_utf8encodeW(wszMessageXMLEncoded));
|