From 079618ded3af27e3d428cb387289ef6f666ccf38 Mon Sep 17 00:00:00 2001 From: Erwan Velu Date: Wed, 20 Apr 2011 20:12:24 +0200 Subject: [PATCH] libupload: Fixing tftp return value The default return value for the tftp mode. This made the tftp to return error even if the upload was succesful. --- com32/libupload/upload_tftp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/com32/libupload/upload_tftp.c b/com32/libupload/upload_tftp.c index 8c65c9b..5e73c1c 100644 --- a/com32/libupload/upload_tftp.c +++ b/com32/libupload/upload_tftp.c @@ -138,7 +138,7 @@ static int upload_tftp_write(struct upload_backend *be) struct tftp_state tftp; char buffer[512+4+6]; int nlen; - int err=0; + int err=TFTP_OK; const union syslinux_derivative_info *sdi = syslinux_derivative_info(); const char *data = be->outbuf; @@ -193,7 +193,7 @@ static int upload_tftp_write(struct upload_backend *be) return err; } while (chunk == 512); - return 0; + return TFTP_OK; } struct upload_backend upload_tftp = { -- 2.7.4