tls/schannel: fix memory leak

Assume InitializeSecurityContext() doesn't change pszTargetName.
Reported by @youzpp in metajack/libstrophe#35.
This commit is contained in:
Dmitry Podgorny
2017-06-24 16:26:39 +03:00
parent 704c157d24
commit 2a474bd809

View File

@@ -223,7 +223,7 @@ int tls_start(tls_t *tls)
char *name;
/* use the domain there as our name */
name = strdup(tls->conn->domain);
name = tls->conn->domain;
ctxtreq = ISC_REQ_SEQUENCE_DETECT | ISC_REQ_REPLAY_DETECT
| ISC_REQ_CONFIDENTIALITY | ISC_RET_EXTENDED_ERROR