From 5a98bcd78867b4fb1a272ce26774c8811f28750d Mon Sep 17 00:00:00 2001 From: David Timber Date: Thu, 22 Jul 2021 22:30:48 +1000 Subject: Impl PRNE_HTBT_OP_RCB ... * Parameterize prne_start_bin_rcb() args * Change value of PRNE_ARCH_NONE to 0 to use it over the wire (problem arises deserialising) * tostr() and fstr() functions set errno to EINVAL * Run bne without binary archive to support same-arch infection --- src/resolv.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/resolv.c') diff --git a/src/resolv.c b/src/resolv.c index 817c9f8..b7f00e7 100644 --- a/src/resolv.c +++ b/src/resolv.c @@ -1609,6 +1609,7 @@ const char *prne_resolv_qr_tostr (const prne_resolv_qr_t qr) { case PRNE_RESOLV_QR_TIMEOUT: return "TIMEOUT"; case PRNE_RESOLV_QR_STATUS: return "STATUS"; } + errno = EINVAL; return NULL; } @@ -1621,6 +1622,7 @@ const char *prne_resolv_rcode_tostr (const prne_resolv_rcode_t rc) { case PRNE_RESOLV_RCODE_NOTIMP: return "NOTIMP"; case PRNE_RESOLV_RCODE_REFUSED: return "REFUSED"; } + errno = EINVAL; return NULL; } @@ -1635,5 +1637,6 @@ const char *prne_resolv_rrtype_tostr (const uint16_t rrt) { case PRNE_RESOLV_RTYPE_TXT: return "TXT"; case PRNE_RESOLV_RTYPE_AAAA: return "AAAA"; } + errno = EINVAL; return NULL; } -- cgit