mirror of
https://github.com/sheumann/telnetd.git
synced 2024-11-26 12:49:21 +00:00
Use static buffer to save source route hostnames.
Approved by: jkh git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@57343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
This commit is contained in:
parent
62286e5a31
commit
737e54e224
@ -2507,7 +2507,7 @@ tn(argc, argv)
|
||||
res0 = res;
|
||||
af_again:
|
||||
if (srcroute != 0) {
|
||||
char hostbuf[BUFSIZ];
|
||||
static char hostbuf[BUFSIZ];
|
||||
|
||||
if (af_error == 0) { /* save intermediate hostnames for retry */
|
||||
strncpy(hostbuf, hostp, BUFSIZ - 1);
|
||||
|
Loading…
Reference in New Issue
Block a user