/*****************************************************************************
* httpd.c
*****************************************************************************
- * Copyright (C) 2004 VideoLAN
+ * Copyright (C) 2004-2005 VideoLAN
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
fcntl( fd, F_SETFL, O_NONBLOCK );
#endif
- /* FIXME: that MUST be non-blocking */
if( p_tls != NULL)
{
switch ( tls_SessionHandshake( p_tls, fd ) )
msg_Err( host, "Rejecting TLS connection" );
net_Close( fd );
fd = -1;
+ p_tls = NULL;
break;
case 1: /* missing input - most likely */