Make tls_new accept xmpp_conn_t

This commit is contained in:
Alexander Krotov
2017-06-23 02:59:05 +03:00
parent f776b34d8c
commit c9ddc2b7ef
6 changed files with 16 additions and 16 deletions

View File

@@ -874,7 +874,7 @@ int conn_tls_start(xmpp_conn_t * const conn)
conn->tls = NULL;
rc = XMPP_EINVOP;
} else {
conn->tls = tls_new(conn->ctx, conn->sock);
conn->tls = tls_new(conn);
rc = conn->tls == NULL ? XMPP_EMEM : 0;
}