mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 07:12:39 +00:00
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:
1 parent
522de743e8
commit
1ed089ed1a
4 files changed
+9
-3
No files matched your search
@@ -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>
|
||||
|
||||
* netboot/etherboot.h (ETH_MAX_MTU): Because some DHCP/BOOTP
|
||||
|
||||
@@ -33,6 +33,7 @@ Erik Schoenfelder <schoenfr@gaertner.de>
|
||||
Eugene Doudine <dudin@np.nk.nornik.ru>
|
||||
Florian Hatat <mininet@wanadoo.fr>
|
||||
Frank Mehnert <fm3@os.inf.tu-dresden.de>
|
||||
Gary Poppitz <gpoppitz@tachyon.net>
|
||||
Goran Koruga <goran.koruga@hermes.si>
|
||||
Hal Snyder <hal@vailsys.com>
|
||||
HASEGAWA Tomoki <thasegawa@mta.biglobe.ne.jp>
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* 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
|
||||
* 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. */
|
||||
if (! buf_fill (0))
|
||||
if (size > 0 && ! buf_fill (0))
|
||||
{
|
||||
errnum = ERR_READ;
|
||||
return 0;
|
||||
|
||||
Reference in new issue
Block a user