Make sure sftp_get_limits() only returns 0 if 'limits' was initialized.
authortobhe <tobhe@openbsd.org>
Mon, 13 Nov 2023 09:18:19 +0000 (09:18 +0000)
committertobhe <tobhe@openbsd.org>
Mon, 13 Nov 2023 09:18:19 +0000 (09:18 +0000)
commit22a86cc3a1594c2f738d73ecf944b2e5a72a034f
tree5b5e3f52d772bdce6ae84d50b980ca757785657e
parent0f9e864129c82a227706713b7f9b25fa9bdb2ef5
Make sure sftp_get_limits() only returns 0 if 'limits' was initialized.
This fixes a potential uninitialized use of 'limits' in sftp_init() if
sftp_get_limits() returned early because of an unexpected message type.

ok djm@
usr.bin/ssh/sftp-client.c