aboutsummaryrefslogtreecommitdiff
path: root/src/cred_dict.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-10-20 07:28:50 +1030
committerDavid Timber <mieabby@gmail.com>2020-10-20 07:28:50 +1030
commit4c882d7216bb12d5821a108b9f11544a075c7024 (patch)
tree84fba1d9decbab537a2ddb1931ef89f219438274 /src/cred_dict.c
parent5dbfcb1f66b681fbb6cdec8836efe2c2d84f957e (diff)
Impl hostinfod and extras ...
* Use EOVERFLOW instead of E2BIG * Add prne_iobuf_zero() * Fix format check logic error in prne_htbt_ser_msg_head() * Add prne_dup_str() * Add prne_timespec_ms()
Diffstat (limited to 'src/cred_dict.c')
-rw-r--r--src/cred_dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cred_dict.c b/src/cred_dict.c
index 1b6a5bb..10a76a0 100644
--- a/src/cred_dict.c
+++ b/src/cred_dict.c
@@ -33,7 +33,7 @@ bool prne_build_cred_dict (
uint16_t idx_id, idx_pw;
if (cnt > UINT16_MAX) {
- errno = E2BIG;
+ errno = EOVERFLOW;
return false;
}
@@ -56,7 +56,7 @@ bool prne_build_cred_dict (
}
l = 2/*head*/ + 5 * cnt/*entries*/ + sum_str;
if (sum_str > UINT16_MAX || l > UINT16_MAX) {
- errno = E2BIG;
+ errno = EOVERFLOW;
goto END;
}