From: hackbard Date: Tue, 11 May 2004 07:54:19 +0000 (+0000) Subject: also memset challenger struct when receiving quit X-Git-Url: https://hackdaworld.org/gitweb/?a=commitdiff_plain;h=1d24c5371e02647c8eeb4dc00ec6d667d169faa7;p=my-code%2Fivac.git also memset challenger struct when receiving quit --- diff --git a/src/ivac.c b/src/ivac.c index 0108131..4fede22 100644 --- a/src/ivac.c +++ b/src/ivac.c @@ -179,6 +179,7 @@ int ivac_receive_info(int channel,t_ivac *ivac) { event_math(ivac->net.connection[channel].fd,&(ivac->event), READ,REMOVE); network_close(&(ivac->net),channel); + memset(&(ivac->challenger[channel]),0,sizeof(t_challenger)); default: puts("[ivac] ivac_receive_info, unknown character"); return ERROR;