Skip to content

Commit

Permalink
tls/schannel: fix memory leak
Browse files Browse the repository at this point in the history
Assume InitializeSecurityContext() doesn't change pszTargetName.
Reported by @youzpp in metajack/libstrophe#35.
  • Loading branch information
pasis committed Jun 25, 2017
1 parent 704c157 commit 2a474bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tls_schannel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2a474bd

Please sign in to comment.