Check port safety for AltSvc.
This commit is contained in:
parent
828eacba0b
commit
2c720730d7
|
@ -121,6 +121,11 @@ AltSvcMapping::ProcessHeader(const nsCString &buf, const nsCString &originScheme
|
|||
continue;
|
||||
}
|
||||
|
||||
if (NS_FAILED(NS_CheckPortSafety(portno, originScheme.get()))) {
|
||||
LOG(("Alt Svc does not allow port %d, ignoring request", portno));
|
||||
continue;
|
||||
}
|
||||
|
||||
// unescape modifies a c string in place, so afterwards
|
||||
// update nsCString length
|
||||
nsUnescape(npnToken.BeginWriting());
|
||||
|
|
Loading…
Reference in New Issue