Commit f2013004 authored by Daniel Salzman's avatar Daniel Salzman

pkt: use proper 16-bit variable for record type storage

parent abc2e8d7
......@@ -412,7 +412,7 @@ uint16_t knot_pkt_type(const knot_pkt_t *pkt)
bool is_query = (knot_wire_get_qr(pkt->wire) == 0);
uint16_t ret = KNOT_QUERY_INVALID;
uint8_t opcode = knot_wire_get_opcode(pkt->wire);
uint8_t query_type = knot_pkt_qtype(pkt);
uint16_t query_type = knot_pkt_qtype(pkt);
switch (opcode) {
case KNOT_OPCODE_QUERY:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment