Commit 33a5fa07 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Document the assertion

parent 490dfd5c
...@@ -1020,7 +1020,7 @@ static int Connect( access_t *p_access, int64_t i_tell ) ...@@ -1020,7 +1020,7 @@ static int Connect( access_t *p_access, int64_t i_tell )
p_access->info.b_eof = false; p_access->info.b_eof = false;
/* Open connection */ /* Open connection */
assert( p_sys->fd == -1 ); assert( p_sys->fd == -1 ); /* No open sockets (leaking fds is BAD) */
p_sys->fd = net_ConnectTCP( p_access, srv.psz_host, srv.i_port ); p_sys->fd = net_ConnectTCP( p_access, srv.psz_host, srv.i_port );
if( p_sys->fd == -1 ) if( p_sys->fd == -1 )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment