Skip to content
Snippets Groups Projects
Commit a6f48c4a authored by Marek Vavrusa's avatar Marek Vavrusa
Browse files

Fixed wrong calling convention that corrupted stack.

fixes #1529 @30m
parent a266596a
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,7 @@
#include "knot/common.h"
#include "knot/server/tcp-handler.h"
#include "knot/server/xfr-handler.h"
#include "knot/server/zones.h"
#include "libknot/nameserver/name-server.h"
#include "knot/other/error.h"
#include "libknot/util/wire.h"
......@@ -143,7 +144,7 @@ static void tcp_handle(tcp_worker_t *w, int fd, uint8_t *qbuf, size_t qbuf_maxle
/* Query types. */
case KNOT_QUERY_NORMAL:
//res = knot_ns_answer_normal(ns, packet, qbuf, &resp_len);
res = zones_normal_query_answer(ns, packet, qbuf, resp_len);
res = zones_normal_query_answer(ns, packet, &addr, qbuf, &resp_len);
break;
case KNOT_QUERY_IXFR:
res = xfr_request_init(&xfr, XFR_TYPE_IOUT, XFR_FLAG_TCP, packet);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment