diff options
author | 2016-09-14 11:34:37 +0000 | |
---|---|---|
committer | 2016-09-14 11:34:37 +0000 | |
commit | 4e91ee0b3502efe3b5bc43858e7ae6a518c2f45d (patch) | |
tree | 61ed6523c79c60b35c44fd864116744ab183b082 /lib/libtls/tls_server.c | |
parent | Handle the FLUSH BIO cntl, that happens at the end of SSL handshakes. (diff) | |
download | wireguard-openbsd-4e91ee0b3502efe3b5bc43858e7ae6a518c2f45d.tar.xz wireguard-openbsd-4e91ee0b3502efe3b5bc43858e7ae6a518c2f45d.zip |
Set callbacks on the right tls ctx on accept.
From Tobias Pape
Diffstat (limited to 'lib/libtls/tls_server.c')
-rw-r--r-- | lib/libtls/tls_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls_server.c b/lib/libtls/tls_server.c index fd352a8a949..fbd726f3353 100644 --- a/lib/libtls/tls_server.c +++ b/lib/libtls/tls_server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tls_server.c,v 1.27 2016/09/04 13:20:56 jsing Exp $ */ +/* $OpenBSD: tls_server.c,v 1.28 2016/09/14 11:34:37 bcook Exp $ */ /* * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> * @@ -351,7 +351,7 @@ tls_accept_cbs(struct tls *ctx, struct tls **cctx, if ((conn_ctx = tls_accept_common(ctx)) == NULL) goto err; - if (tls_set_cbs(ctx, read_cb, write_cb, cb_arg) != 0) { + if (tls_set_cbs(conn_ctx, read_cb, write_cb, cb_arg) != 0) { tls_set_errorx(ctx, "callback registration failure"); goto err; } |