Merge with git+ssh://master.kernel.org/pub/scm/network/tftp/tftp-hpa.git

This commit is contained in:
H. Peter Anvin 2006-10-04 10:19:23 -07:00
commit f3beb3a119
2 changed files with 12 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Changes in 0.43:
Fix double-free error on ^c in client.
Changes in 0.42: Changes in 0.42:
Try to disable path MTU discovery for TFTP connections (it's Try to disable path MTU discovery for TFTP connections (it's
useless anyway.) useless anyway.)

View file

@ -304,8 +304,6 @@ main(int argc, char *argv[])
(*c->handler)(pargc, pargv); (*c->handler)(pargc, pargv);
exit(0); exit(0);
} }
if (sigsetjmp(toplevel,1) != 0)
(void)putchar('\n');
#ifdef WITH_READLINE #ifdef WITH_READLINE
#ifdef HAVE_READLINE_HISTORY_H #ifdef HAVE_READLINE_HISTORY_H
@ -313,6 +311,8 @@ main(int argc, char *argv[])
#endif #endif
#endif #endif
if (sigsetjmp(toplevel,1) != 0)
(void)putchar('\n');
command(); command();
return 0; /* Never reached */ return 0; /* Never reached */
@ -336,8 +336,10 @@ getmoreargs(const char *partial, const char *mprompt)
elen = strlen(eline); elen = strlen(eline);
if (line) if (line) {
free(line); free(line);
line = NULL;
}
line = xmalloc(len+elen+1); line = xmalloc(len+elen+1);
strcpy(line, partial); strcpy(line, partial);
strcpy(line+len, eline); strcpy(line+len, eline);
@ -734,8 +736,10 @@ command(void)
for (;;) { for (;;) {
#ifdef WITH_READLINE #ifdef WITH_READLINE
if ( line ) if ( line ) {
free(line); free(line);
line = NULL;
}
line = readline(prompt); line = readline(prompt);
if ( !line ) if ( !line )
exit(0); /* EOF */ exit(0); /* EOF */