socks5_connect(): Don't try to send credentials when none are configured
authorFabian Keil <fk@fabiankeil.de>
Sun, 7 Feb 2021 12:24:15 +0000 (13:24 +0100)
committerFabian Keil <fk@fabiankeil.de>
Thu, 25 Feb 2021 14:05:57 +0000 (15:05 +0100)
commit85817cc55b9829e6c20db40d3a93b8380618463d
tree4ba92157f787600ab82ae0df292d824709f9ec57
parente711c505c4830ab271938d61af90a2075523f058
socks5_connect(): Don't try to send credentials when none are configured

Fixes a crash due to a NULL-pointer dereference when
the socks server misbehaves.

OVE-20210207-0001.

Reported by: Joshua Rogers (Opera)
gateway.c