|
@@ -200,8 +200,8 @@ bool IncomingPacket::_doERROR(const RuntimeEnvironment *RR,void *tPtr,const Shar
|
|
|
const uint16_t errorDataSize = at<uint16_t>(ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 8);
|
|
|
s -= 2;
|
|
|
if (s >= (int)errorDataSize) {
|
|
|
- Dictionary<1024> authInfo(((const char *)this->data()) + (ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 10), errorDataSize);
|
|
|
- char authenticationURL[256];
|
|
|
+ Dictionary<3072> authInfo(((const char *)this->data()) + (ZT_PROTO_VERB_ERROR_IDX_PAYLOAD + 10), errorDataSize);
|
|
|
+ char authenticationURL[2048];
|
|
|
if (authInfo.get("aU", authenticationURL, sizeof(authenticationURL)) > 0) {
|
|
|
authenticationURL[sizeof(authenticationURL) - 1] = 0; // ensure always zero terminated
|
|
|
network->setAuthenticationRequired(authenticationURL);
|