Stupid memset fix'd

This commit is contained in:
BlackLight 2010-10-11 17:41:54 +02:00
parent 6b2ad2aa9b
commit d7b3d1aff1

View file

@ -668,7 +668,7 @@ AI_webserv_thread ( void *arg )
if ( !( conn = (conn_info*) malloc ( sizeof ( conn_info )))) if ( !( conn = (conn_info*) malloc ( sizeof ( conn_info ))))
continue; continue;
memset ( conn, 0, sizeof ( conn )); memset ( conn, 0, sizeof ( conn_info ));
if (( conn->sd = accept ( sd, (struct sockaddr*) &(conn->client), (socklen_t*) &sockaddr_size )) < 0 ) if (( conn->sd = accept ( sd, (struct sockaddr*) &(conn->client), (socklen_t*) &sockaddr_size )) < 0 )
continue; continue;