ftpd.c: Do not use negative socket descriptor
Summary
ftpd.c: Do not use negative socket descriptor
Coverity CIDs 1592926 and 1592930
The set_socket_timeout() function was called in two places which potentially could pass in -1. Adding a check to set_socket_timeout() was a simple solution to protect all path.
Closes #5104,