diff options
author | June McEnroe <june@causal.agency> | 2021-09-05 16:47:48 -0400 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2021-09-05 16:47:48 -0400 |
commit | 690526fec2fb7958b621f3f6ac77c9612f1e73dc (patch) | |
tree | 22f649fd3492b46a50874943bef0589ae990c071 /state.c | |
parent | Expand on -s size option (diff) | |
download | pounce-690526fec2fb7958b621f3f6ac77c9612f1e73dc.tar.gz pounce-690526fec2fb7958b621f3f6ac77c9612f1e73dc.zip |
Use EX_USAGE for all local configuration errors
Diffstat (limited to '')
-rw-r--r-- | state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/state.c b/state.c index 7a12afa..cb9419d 100644 --- a/state.c +++ b/state.c @@ -63,10 +63,10 @@ void stateLogin( if (plain) { byte buf[AuthLen] = {0}; size_t len = 1 + strlen(plain); - if (len > sizeof(buf)) errx(EX_CONFIG, "SASL PLAIN too long"); + if (len > sizeof(buf)) errx(EX_USAGE, "SASL PLAIN too long"); memcpy(&buf[1], plain, len - 1); byte *sep = memchr(buf, ':', len); - if (!sep) errx(EX_CONFIG, "SASL PLAIN missing colon"); + if (!sep) errx(EX_USAGE, "SASL PLAIN missing colon"); *sep = 0; base64(plainBase64, buf, len); explicit_bzero(buf, len); |