case ECMD_PASV: /* Enter passive mode. */\r
/* Connect passive: Server will listen() and wait for a connection.\r
Start up a new data connection with 'xDoListen' set to true. */\r
- if( prvTransferConnect( pxClient, pdTRUE ) == pdFALSE )\r
+ if( prvTransferConnect( pxClient, pdTRUE ) != pdTRUE )\r
{\r
pcMyReply = REPL_502;\r
}\r
{\r
pcMyReply = REPL_501;\r
}\r
- else if( prvTransferConnect( pxClient, pdFALSE ) == pdFALSE )\r
+ else if( prvTransferConnect( pxClient, pdFALSE ) != pdTRUE )\r
{\r
/* Call prvTransferConnect() with 'xDoListen' = false for an\r
active connect(). */\r
xAddress.sin_addr = FreeRTOS_GetIPAddress( ); /* Single NIC, currently not used */\r
xAddress.sin_port = FreeRTOS_htons( 0 ); /* Bind to any available port number */\r
\r
- FreeRTOS_bind( xSocket, &xAddress, sizeof( xAddress ) );\r
+ BaseType_t xBindResult;\r
+ xBindResult = FreeRTOS_bind( xSocket, &xAddress, sizeof( xAddress ) );\r
+ if ( xBindResult != 0 )\r
+ {\r
+ FreeRTOS_printf( ( "FreeRTOS_bind() failed\n" ) );\r
+ return xBindResult;\r
+ }\r
\r
#if( ipconfigFTP_TX_BUFSIZE > 0 )\r
{\r