[rtems commit] Fixed incorrect error path

Sebastian Huber sebh at rtems.org
Wed Feb 15 09:04:37 UTC 2012


Module:    rtems
Branch:    master
Commit:    f14327a24de147762282db5584b8cb64cea44970
Changeset: http://git.rtems.org/rtems/commit/?id=f14327a24de147762282db5584b8cb64cea44970

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Feb 15 09:59:55 2012 +0100

Fixed incorrect error path

The inet_aton() function returns non-zero in case of success.

---

 cpukit/libnetworking/lib/tftpDriver.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/cpukit/libnetworking/lib/tftpDriver.c b/cpukit/libnetworking/lib/tftpDriver.c
index 6332b98..c5e6c6b 100644
--- a/cpukit/libnetworking/lib/tftpDriver.c
+++ b/cpukit/libnetworking/lib/tftpDriver.c
@@ -591,8 +591,6 @@ static int rtems_tftp_open_worker(
         if (he == NULL)
             return ENOENT;
         memcpy (&farAddress, he->h_addr, sizeof (farAddress));
-    } else {
-        return ENOENT;
     }
     
     /*




More information about the vc mailing list