mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 03:09:00 +08:00
Fixed incorrect error path
The inet_aton() function returns non-zero in case of success.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user