projects
/
fms.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
version 0.3.20
[fms.git]
/
src
/
freenet
/
introductionpuzzlerequester.cpp
diff --git
a/src/freenet/introductionpuzzlerequester.cpp
b/src/freenet/introductionpuzzlerequester.cpp
index
dabe818
..
88fd483
100644
(file)
--- a/
src/freenet/introductionpuzzlerequester.cpp
+++ b/
src/freenet/introductionpuzzlerequester.cpp
@@
-66,10
+66,13
@@
const bool IntroductionPuzzleRequester::HandleAllData(FCPMessage &message)
\r
// receive the file
\r
data.resize(datalength);
\r
\r
// receive the file
\r
data.resize(datalength);
\r
- m_fcp->ReceiveRaw(&data[0],datalength);
\r
+ if(data.size()>0)
\r
+ {
\r
+ m_fcp->ReceiveRaw(&data[0],datalength);
\r
+ }
\r
\r
// parse file into xml and update the database
\r
\r
// parse file into xml and update the database
\r
- if(xml.ParseXML(std::string(data.begin(),data.end()))==true)
\r
+ if(
data.size()>0 &&
xml.ParseXML(std::string(data.begin(),data.end()))==true)
\r
{
\r
\r
// check if last part of UUID matches first part of public key of identity who inserted it
\r
{
\r
\r
// check if last part of UUID matches first part of public key of identity who inserted it
\r