mirror of
https://github.com/BlackLight/Snort_AIPreproc.git
synced 2024-11-24 04:35:11 +01:00
Stupid memset fix'd
This commit is contained in:
parent
6b2ad2aa9b
commit
d7b3d1aff1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue