[rtems commit] tftpDriver: close() false error
Joel Sherril
joel at rtems.org
Wed Jul 29 16:21:17 UTC 2015
Module: rtems
Branch: 4.10
Commit: a4e052b53fb10f0cf2e3c1f4681710ab9912fbcd
Changeset: http://git.rtems.org/rtems/commit/?id=a4e052b53fb10f0cf2e3c1f4681710ab9912fbcd
Author: Michael Davidsaver <mdavidsaver at gmail.com>
Date: Sun Jul 26 09:27:10 2015 -0400
tftpDriver: close() false error
closes #2376.
---
cpukit/libnetworking/lib/tftpDriver.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cpukit/libnetworking/lib/tftpDriver.c b/cpukit/libnetworking/lib/tftpDriver.c
index bbaf493..880223f 100644
--- a/cpukit/libnetworking/lib/tftpDriver.c
+++ b/cpukit/libnetworking/lib/tftpDriver.c
@@ -995,7 +995,9 @@ static int rtems_tftp_close(
rtems_task_wake_after (1 + ticksPerSecond / 10);
}
releaseStream (fs, iop->data0);
- rtems_set_errno_and_return_minus_one (e);
+ if (e)
+ rtems_set_errno_and_return_minus_one (e);
+ return 0;
}
static ssize_t rtems_tftp_write(
More information about the vc
mailing list