Module Name: src Committed By: martin Date: Mon Nov 18 19:44:57 UTC 2024
Modified Files: src/lib/libtelnet [netbsd-9]: enc-proto.h enc_des.c encrypt.c encrypt.h src/libexec/telnetd [netbsd-9]: state.c sys_term.c telnetd.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #1927): lib/libtelnet/encrypt.h: revision 1.10 libexec/telnetd/telnetd.c: revision 1.59 libexec/telnetd/sys_term.c: revision 1.50 lib/libtelnet/encrypt.c: revision 1.20 lib/libtelnet/enc_des.c: revision 1.18 lib/libtelnet/enc-proto.h: revision 1.11 libexec/telnetd/state.c: revision 1.33 libexec/telnetd/state.c: revision 1.35 libexec/telnetd/telnetd.c: revision 1.60 Fix memory leak - free resources allocated by getaddrinfo Fix off by one in telrcv() In case of "\r" in the data buffer, the code was unconditionally looking ahead to next character, even if "\r" was last character in the buffer. That condition leads to read outside of the data (one byte after the array) Thanks christos@ for the review PR bin/58787 libtelnet - avoid using a global variable >From RVP -- make 'encrypt_debug_mode' be a static (file scope) variable instead of extern, and convert the (had been recently anyway) unused function encrypt_debug() into an accensor function for it. This is the minor (almost irrelevant) change from PR bin/58787 PR bin/58787 telnetd - handle auto authentication better Apparently from FreeBSD via RVP -- but FreeBSD deleted telnetd more than 2 years ago, so I assume instead from https://github.com/cschuber/freebsd-telnet/tree/main/contrib/telnet To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.10.2.1 src/lib/libtelnet/enc-proto.h cvs rdiff -u -r1.16 -r1.16.34.1 src/lib/libtelnet/enc_des.c cvs rdiff -u -r1.18 -r1.18.2.1 src/lib/libtelnet/encrypt.c cvs rdiff -u -r1.9 -r1.9.42.1 src/lib/libtelnet/encrypt.h cvs rdiff -u -r1.31 -r1.31.2.1 src/libexec/telnetd/state.c cvs rdiff -u -r1.48.2.1 -r1.48.2.2 src/libexec/telnetd/sys_term.c cvs rdiff -u -r1.55.28.2 -r1.55.28.3 src/libexec/telnetd/telnetd.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.