aboutsummaryrefslogtreecommitdiffstats
path: root/core/fs/pxe/tcp.c
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2012-04-27 22:32:02 -0400
committerGene Cumm <gene.cumm@gmail.com>2012-04-27 22:32:02 -0400
commitb2d6e6e37706f7894d876927cd786362d6162368 (patch)
treee488dd452c07c42d2623ca2604fd6aab7c40b52b /core/fs/pxe/tcp.c
parent3ad59fbce2c5af0b208f2a15bd407512c6885c7a (diff)
downloadsyslinux-b2d6e6e37706f7894d876927cd786362d6162368.tar.gz
syslinux-b2d6e6e37706f7894d876927cd786362d6162368.tar.xz
syslinux-b2d6e6e37706f7894d876927cd786362d6162368.zip
core/pxe: lwip changes to netconn_recv
Signed-off-by: Gene Cumm <gene.cumm@gmail.com>
Diffstat (limited to 'core/fs/pxe/tcp.c')
-rw-r--r--core/fs/pxe/tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fs/pxe/tcp.c b/core/fs/pxe/tcp.c
index daff4d70..ec7679e7 100644
--- a/core/fs/pxe/tcp.c
+++ b/core/fs/pxe/tcp.c
@@ -51,8 +51,8 @@ void tcp_fill_buffer(struct inode *inode)
}
/* If needed get a new netbuf */
if (!socket->buf) {
- socket->buf = netconn_recv(socket->conn);
- if (!socket->buf) {
+ err = netconn_recv(socket->conn, &(socket->buf));
+ if (!socket->buf || err) {
socket->tftp_goteof = 1;
if (inode->size == -1)
inode->size = socket->tftp_filepos;