Remove unintended changes.

I inadvertently included a couple of local changes with the OpenSSL
3.0.4 change.  Revert, anything that should be there will be committed
separately.
This commit is contained in:
Darren Tucker 2022-07-14 19:20:24 +10:00
parent 527cb43fa1
commit a061792a6e
2 changed files with 2 additions and 13 deletions

View File

@ -23,16 +23,3 @@ for t in $SSH_KEYTYPES; do
fail "ssh-keyscan -t $t failed with: $r" fail "ssh-keyscan -t $t failed with: $r"
fi fi
done done
stop_sshd
sleep 1
trace "keyscan banner length"
banner=""
for i in `seq 245 256`; do
trace "keyscan length $i"
banner=`perl -le "print 'A'x$i"`
(printf "SSH-2.0-${banner}" | ${NC} -N -l $PORT >/dev/null) &
${SSHKEYSCAN} -p $PORT 127.0.0.1
sleep 3
done

View File

@ -42,6 +42,8 @@ main(int argc, char **argv)
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
sanitise_stdfd(); sanitise_stdfd();
seed_rng();
if ((user_pw = getpwuid(getuid())) == NULL) { if ((user_pw = getpwuid(getuid())) == NULL) {
fprintf(stderr, "No user found for uid %lu\n", fprintf(stderr, "No user found for uid %lu\n",
(u_long)getuid()); (u_long)getuid());