diff options
author | Brent Cook <bcook@cvs.openbsd.org> | 2016-09-14 11:34:38 +0000 |
---|---|---|
committer | Brent Cook <bcook@cvs.openbsd.org> | 2016-09-14 11:34:38 +0000 |
commit | 92707d4c15c9025432f42ebd022471c81be29943 (patch) | |
tree | 91717213f5ade7974dbd955b5131f474ff76b6f8 /lib/libtls/tls_server.c | |
parent | 133a8f53f00d967d22c4076e714f64d094ebccf4 (diff) |
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; } |