Skip to content

Commit 1a40db8

Browse files
[[ Bug 15314 ]] Initialise to empty the secure socket hostname verification, if none provided
1 parent e6e6209 commit 1a40db8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/notes/bugfix-15314.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# "secure socket" crashes livecode

engine/src/cmdsf.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5404,8 +5404,9 @@ void MCSecure::exec_ctxt(MCExecContext& ctxt)
54045404
return;
54055405

54065406
// MM-2014-06-13: [[ Bug 12567 ]] Added passing through the host name to verify against.
5407+
// SN-2015-05-05: [[ Bug 15314 ]] The host name should be initialised.
54075408
MCNewAutoNameRef t_host_name;
5408-
if (!ctxt . EvalOptionalExprAsNullableNameRef(m_verify_host_name, EE_SECURE_BADHOST, &t_host_name))
5409+
if (!ctxt . EvalOptionalExprAsNameRef(m_verify_host_name, kMCEmptyName, EE_SECURE_BADHOST, &t_host_name))
54095410
return;
54105411

54115412
MCSecurityExecSecureSocket(ctxt, *t_name, secureverify == True, *t_host_name);

0 commit comments

Comments
 (0)