Fix potential bug in controller config request.

This commit is contained in:
Adam Ierymenko 2015-07-07 10:02:48 -07:00
parent 778c7e6e70
commit 07ea4fd4f9
2 changed files with 3 additions and 2 deletions

View File

@ -264,7 +264,7 @@ void Network::requestConfiguration()
outp.append((uint64_t)_config->revision());
else outp.append((uint64_t)0);
}
RR->sw->send(outp,true,_id);
RR->sw->send(outp,true,0);
}
bool Network::validateAndAddMembershipCertificate(const CertificateOfMembership &cert)

View File

@ -110,7 +110,8 @@ public:
* won't be encrypted right. (This is not used for relaying.)
*
* The network ID should only be specified for frames and other actual
* network traffic.
* network traffic. Other traffic such as controller requests and regular
* protocol messages should specify zero.
*
* @param packet Packet to send
* @param encrypt Encrypt packet payload? (always true except for HELLO)