From: Marek VavruĊĦa Date: Sat, 21 Apr 2018 07:12:03 +0000 (-0700) Subject: worker: fixed a mistakenly used pkt_buf instead of pkt X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28bda2a9061cb778f502ea336e6f57a4072662a7;p=thirdparty%2Fknot-resolver.git worker: fixed a mistakenly used pkt_buf instead of pkt The `pkt` is set to NULL above, but it's not used and `pkt_buf` is used instead, it may point to an invalid packet and cause problems further down. --- diff --git a/daemon/tls.c b/daemon/tls.c index 5424cfc59..41b6dd8ec 100644 --- a/daemon/tls.c +++ b/daemon/tls.c @@ -221,8 +221,6 @@ int tls_push(struct qr_task *task, uv_handle_t *handle, knot_pkt_t *pkt) tls_ctx->task = task; - assert(gnutls_record_check_corked(tls_session) == 0); - gnutls_record_cork(tls_session); ssize_t count = 0; if ((count = gnutls_record_send(tls_session, &pkt_size, sizeof(pkt_size)) < 0) ||