[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-153-g80731
From: |
Simon Josefsson |
Subject: |
[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-153-g8073192 |
Date: |
Wed, 22 Aug 2012 11:51:04 +0000 |
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 <address@hidden>
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 <address@hidden>.
diff --git a/ChangeLog b/ChangeLog
index 5c0a7ab..53e22b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-22 Petr Malát <address@hidden> (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 <address@hidden>
* 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-153-g8073192,
Simon Josefsson <=