diff options
author | June McEnroe | 2022-01-16 14:17:46 -0500 |
---|---|---|
committer | June McEnroe | 2022-01-16 14:17:46 -0500 |
commit | 605f889ab57c3465523104812fbf3edeb1e513d9 (patch) | |
tree | bc725593f352dee73e9337ddc6fe520331d25acc | |
parent | e7cec137239be76c7777b4e6406a0cb089d7a634 (diff) |
Avoid sending null byte in SASL PLAIN2.0a
Woops! BASE64_SIZE is the size of the string buffer. Somehow ergo
is the only server software (that I know of) to reject the accidental
null byte.
Reported by smlavine.
-rw-r--r-- | handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -219,7 +219,7 @@ static void handleAuthenticate(struct Message *msg) { char b64[BASE64_SIZE(sizeof(buf))]; base64(b64, buf, len); ircFormat("AUTHENTICATE "); - ircSend(b64, BASE64_SIZE(len)); + ircSend(b64, BASE64_SIZE(len) - 1); ircFormat("\r\n"); explicit_bzero(b64, sizeof(b64)); |