Bug 1246735 - h2 reset recursive push. r=hurley

--HG--
extra : rebase_source : 91c88eacaf31338c0c1c027665ed5d6001e3b843
This commit is contained in:
Patrick McManus 2016-03-09 09:20:02 -05:00
parent ac2ca00f06
commit 265bd49b07

View File

@ -1598,6 +1598,10 @@ Http2Session::RecvPushPromise(Http2Session *self)
RETURN_SESSION_ERROR(self, PROTOCOL_ERROR);
}
self->GenerateRstStream(REFUSED_STREAM_ERROR, promisedID);
} else if (!(associatedID & 1)) {
LOG3(("Http2Session::RecvPushPromise %p assocated=0x%X on pushed (even) stream not allowed\n",
self, associatedID));
self->GenerateRstStream(PROTOCOL_ERROR, promisedID);
} else if (!associatedStream) {
LOG3(("Http2Session::RecvPushPromise %p lookup associated ID failed.\n", self));
self->GenerateRstStream(PROTOCOL_ERROR, promisedID);