This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  8073192d2df6eb3e8d018e8ed68df4e1df5d75ba (commit)
      from  d5021bb3ec84525f0ded3e5ae3a3c6e1aafee443 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=8073192d2df6eb3e8d018e8ed68df4e1df5d75ba


commit 8073192d2df6eb3e8d018e8ed68df4e1df5d75ba
Author: Simon Josefsson <[email protected]>
Date:   Wed Aug 22 13:48:07 2012 +0200

    telnet: fix responding to DO commands, by initializing variables properly.
    
    Tiny patch from Petr Malát <[email protected]>.

diff --git a/ChangeLog b/ChangeLog
index 5c0a7ab..53e22b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-22  Petr Malát  <[email protected]>  (tiny change)
+
+       * telnet/telnet.c (options, do_dont_resp, will_wont_resp):
+       Initialize variables.
+       (init_telnet): Remove partial initialization from here.
+
 2012-08-22  Simon Josefsson  <[email protected]>
 
        * bootstrap: Updated from gnulib.
diff --git a/telnet/telnet.c b/telnet/telnet.c
index a7f43f0..b5e4b64 100644
--- a/telnet/telnet.c
+++ b/telnet/telnet.c
@@ -105,9 +105,9 @@ static unsigned char subbuffer[SUBBUFSIZE], *subpointer, 
*subend;   /* buffer for
 #define SB_EOF()       (subpointer >= subend)
 #define SB_LEN()       (subend - subpointer)
 
-char options[256];             /* The combined options */
-char do_dont_resp[256];
-char will_wont_resp[256];
+char options[256] = { 0 };             /* The combined options */
+char do_dont_resp[256] = { 0 };
+char will_wont_resp[256] = { 0 };
 
 int eight = 0, autologin = 0,  /* Autologin anyone? */
   skiprc = 0, connected, showoptions, In3270,  /* Are we in 3270 mode? */
@@ -189,7 +189,6 @@ init_telnet (void)
   env_init ();
 
   SB_CLEAR ();
-  ClearArray (options);
 
   connected = In3270 = ISend = localflow = donebinarytoggle = 0;
 #if defined AUTHENTICATION || defined ENCRYPTION

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog       |    6 ++++++
 telnet/telnet.c |    7 +++----
 2 files changed, 9 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
GNU Inetutils 

_______________________________________________
Commit-inetutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/commit-inetutils

Reply via email to