From: dtucker Date: Fri, 3 Mar 2023 10:23:42 +0000 (+0000) Subject: Ensure ms_remain is always initialized, similar to what we do in X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4bc7eee080ec7b58da70e952a733aa1a15fb35ab;p=openbsd Ensure ms_remain is always initialized, similar to what we do in ssh_packet_write_wait. bz#2687, from jjelen at redhat.com. --- diff --git a/usr.bin/ssh/packet.c b/usr.bin/ssh/packet.c index 9c7379b9469..a71820f8faa 100644 --- a/usr.bin/ssh/packet.c +++ b/usr.bin/ssh/packet.c @@ -1,4 +1,4 @@ -/* $OpenBSD: packet.c,v 1.308 2022/08/31 02:56:40 djm Exp $ */ +/* $OpenBSD: packet.c,v 1.309 2023/03/03 10:23:42 dtucker Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -1304,7 +1304,7 @@ int ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p) { struct session_state *state = ssh->state; - int len, r, ms_remain; + int len, r, ms_remain = 0; struct pollfd pfd; char buf[8192]; struct timeval start;