mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Bug 165544 - let mozilla cope with broken socks 4 proxy servers
patch by jra@samba.org (Jeremy Allison), r=bbaetz, sr=darin
This commit is contained in:
parent
8a417ade8c
commit
4e7eefe5e4
@ -534,7 +534,9 @@ ConnectSOCKS4(PRFileDesc *fd, const PRNetAddr *addr, PRIntervalTime timeout)
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
if (response[0] != 0x00) {
|
||||
if ((response[0] != 0x00) && (response[0] != 0x04)) {
|
||||
// Novell BorderManager sends a response of type 4, should be zero
|
||||
// According to the spec. Cope with this brokenness.
|
||||
// it's not a SOCKS 4 reply or version 0 of the reply code
|
||||
LOGERROR(("Not a SOCKS 4 reply. Expected: 0; received: %x.", response[0]));
|
||||
return NS_ERROR_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user