Move null check up and simplify process_escapes. Based on Coverity CID
authordtucker <dtucker@openbsd.org>
Mon, 3 Apr 2023 08:10:54 +0000 (08:10 +0000)
committerdtucker <dtucker@openbsd.org>
Mon, 3 Apr 2023 08:10:54 +0000 (08:10 +0000)
commitb11b589f5b554e63bd124869c7a4b2a15f25b70a
tree906e65a0bf76b47ee5a5cc9a3b56eb38ab9dcc77
parent818aa09fdeb4c07b78b820bba68ebd84dd8df38a
Move null check up and simplify process_escapes.  Based on Coverity CID
291863 which points out we check the channel pointer for NULLness after
dereferencing it.  Move this to the start of the function, and while
there simplify initialization of efc a bit.  ok djm@
usr.bin/ssh/clientloop.c