the 'base' string was leaked. CID 1296
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27510 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -587,6 +587,8 @@ SMTPProtocol::Login(const char *_login, const char *password)
|
|||||||
map<BString,BString> challengeMap;
|
map<BString,BString> challengeMap;
|
||||||
SplitChallengeIntoMap(base, challengeMap);
|
SplitChallengeIntoMap(base, challengeMap);
|
||||||
|
|
||||||
|
delete[] base;
|
||||||
|
|
||||||
BString rawResponse = BString("username=") << '"' << login << '"';
|
BString rawResponse = BString("username=") << '"' << login << '"';
|
||||||
rawResponse << ",realm=" << '"' << challengeMap["realm"] << '"';
|
rawResponse << ",realm=" << '"' << challengeMap["realm"] << '"';
|
||||||
rawResponse << ",nonce=" << '"' << challengeMap["nonce"] << '"';
|
rawResponse << ",nonce=" << '"' << challengeMap["nonce"] << '"';
|
||||||
|
|||||||
Reference in New Issue
Block a user