We loop while (server_sockfd == -1) so it's safe to assume that (server_sockfd != -1) once out of the loop.