Skip to content

Commit 1607038

Browse files
author
Bret Ambrose
committed
Null deref
1 parent c3d42a2 commit 1607038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Mqtt5ClientTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ static int s_applyTunnelingProxyToClientOptions(
754754
const Mqtt5TestEnvVars &mqtt5TestVars,
755755
Mqtt5TestContext &)
756756
{
757-
if (mqtt5TestVars.m_httpproxy_hostname->len == 0)
757+
if (!mqtt5TestVars.m_httpproxy_hostname || mqtt5TestVars.m_httpproxy_hostname->len == 0)
758758
{
759759
return AWS_OP_SKIP;
760760
}

0 commit comments

Comments
 (0)