2002-05-08 Yoshinori K. Okuji <okuji@enbug.org>
* netboot/fsys_tftp.c (tftp_read): Don't call buf_fill unless SIZE is positive.
This commit is contained in:
parent
522de743e8
commit
1ed089ed1a
4 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-05-08 Yoshinori K. Okuji <okuji@enbug.org>
|
||||||
|
|
||||||
|
* netboot/fsys_tftp.c (tftp_read): Don't call buf_fill unless
|
||||||
|
SIZE is positive.
|
||||||
|
|
||||||
2002-05-08 Yoshinori K. Okuji <okuji@enbug.org>
|
2002-05-08 Yoshinori K. Okuji <okuji@enbug.org>
|
||||||
|
|
||||||
* netboot/etherboot.h (ETH_MAX_MTU): Because some DHCP/BOOTP
|
* netboot/etherboot.h (ETH_MAX_MTU): Because some DHCP/BOOTP
|
||||||
|
|
1
THANKS
1
THANKS
|
@ -33,6 +33,7 @@ Erik Schoenfelder <schoenfr@gaertner.de>
|
||||||
Eugene Doudine <dudin@np.nk.nornik.ru>
|
Eugene Doudine <dudin@np.nk.nornik.ru>
|
||||||
Florian Hatat <mininet@wanadoo.fr>
|
Florian Hatat <mininet@wanadoo.fr>
|
||||||
Frank Mehnert <fm3@os.inf.tu-dresden.de>
|
Frank Mehnert <fm3@os.inf.tu-dresden.de>
|
||||||
|
Gary Poppitz <gpoppitz@tachyon.net>
|
||||||
Goran Koruga <goran.koruga@hermes.si>
|
Goran Koruga <goran.koruga@hermes.si>
|
||||||
Hal Snyder <hal@vailsys.com>
|
Hal Snyder <hal@vailsys.com>
|
||||||
HASEGAWA Tomoki <thasegawa@mta.biglobe.ne.jp>
|
HASEGAWA Tomoki <thasegawa@mta.biglobe.ne.jp>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* GRUB -- GRand Unified Bootloader
|
* GRUB -- GRand Unified Bootloader
|
||||||
* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
* Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*
|
/*
|
||||||
* GRUB -- GRand Unified Bootloader
|
* GRUB -- GRand Unified Bootloader
|
||||||
* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
|
* Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -389,7 +389,7 @@ tftp_read (char *addr, int size)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read the data. */
|
/* Read the data. */
|
||||||
if (! buf_fill (0))
|
if (size > 0 && ! buf_fill (0))
|
||||||
{
|
{
|
||||||
errnum = ERR_READ;
|
errnum = ERR_READ;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue