diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-12-11 10:55:43 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-12-11 10:55:43 +0000 |
| commit | a0c5527de41a7274ecd789db30dd1e1368451c4a (patch) | |
| tree | b7d112380c67d0f2c1fe18dd1f8792d31084dee8 /src/common | |
| parent | e649847e631a6222b01ce229c29b800e8a8a0b41 (diff) | |
| download | shibari-a0c5527de41a7274ecd789db30dd1e1368451c4a.tar.gz | |
Fix easy bugs
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/shibari_log_query.c | 2 | ||||
| -rw-r--r-- | src/common/shibari_log_queryplus.c | 2 | ||||
| -rw-r--r-- | src/common/shibari_util_qtype_str.c | 4 |
3 files changed, 3 insertions, 5 deletions
diff --git a/src/common/shibari_log_query.c b/src/common/shibari_log_query.c index b04ee27..6058e12 100644 --- a/src/common/shibari_log_query.c +++ b/src/common/shibari_log_query.c @@ -13,6 +13,6 @@ void shibari_log_query (uint32_t v, s6dns_domain_t const *q, uint16_t qtype) s6dns_domain_t qe ; if (v < 2) return ; qe = *q ; - if (!s6dns_domain_encode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ; + if (!s6dns_domain_decode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ; strerr_warni4x("query ", shibari_util_qtype_str(qtype), " ", qs) ; } diff --git a/src/common/shibari_log_queryplus.c b/src/common/shibari_log_queryplus.c index 7e7fecc..b372526 100644 --- a/src/common/shibari_log_queryplus.c +++ b/src/common/shibari_log_queryplus.c @@ -17,7 +17,7 @@ void shibari_log_queryplus (uint32_t v, s6dns_domain_t const *q, uint16_t qtype, s6dns_domain_t qe ; if (v < 2) return ; qe = *q ; - if (!s6dns_domain_encode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ; + if (!s6dns_domain_decode(&qe) || !s6dns_domain_tostring(qs, 256, &qe)) return ; fmti[ip46_fmt(fmti, ip)] = 0 ; fmtp[uint16_fmt(fmtp, port)] = 0 ; strerr_warni8x("query ", shibari_util_qtype_str(qtype), " ", qs, " ip ", fmti, " port ", fmtp) ; diff --git a/src/common/shibari_util_qtype_str.c b/src/common/shibari_util_qtype_str.c index 97b701d..cbbaa74 100644 --- a/src/common/shibari_util_qtype_str.c +++ b/src/common/shibari_util_qtype_str.c @@ -13,7 +13,7 @@ static char const *const qtype_table[262] = "MF", "CNAME", "SOA", - "MB" + "MB", "MG", "MR", "NULL", @@ -116,7 +116,6 @@ static char const *const qtype_table[262] = "LP", "EUI48", "EUI64", - "unassigned", "unassigned", "unassigned", @@ -256,7 +255,6 @@ static char const *const qtype_table[262] = "unassigned", "unassigned", "unassigned", - "TKEY", "TSIG", "IXFR", |
