mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 14:13:34 +08:00
Correct and error in recv() and recvfrom() return value
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4402 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -234,7 +234,7 @@ int tftpget(const char *remote, const char *local, in_addr_t addr, bool binary)
|
||||
|
||||
/* Check if anything valid was received */
|
||||
|
||||
if (nbytesrecvd >= 0)
|
||||
if (nbytesrecvd > 0)
|
||||
{
|
||||
/* Verify the sender address and port number */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user