From: Todd C. Miller Date: Sun, 12 Aug 2018 03:29:43 +0000 (-0600) Subject: Fix the return value of sudoers_io_change_winsize() on success. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=418bf793f78925566e5c079515115a0f45220bdf;p=sudo Fix the return value of sudoers_io_change_winsize() on success. Otherwise, we only log a single window size change. --- diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index 475ca25b1..48a897775 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -1177,6 +1177,9 @@ sudoers_io_change_winsize(unsigned int lines, unsigned int cols) if (errstr != NULL) goto done; + /* Success. */ + ret = 1; + done: last_time.tv_sec = now.tv_sec; last_time.tv_usec = now.tv_usec;