]> hackdaworld.org Git - my-code/ivac.git/commitdiff
also memset challenger struct when receiving quit
authorhackbard <hackbard>
Tue, 11 May 2004 07:54:19 +0000 (07:54 +0000)
committerhackbard <hackbard>
Tue, 11 May 2004 07:54:19 +0000 (07:54 +0000)
src/ivac.c

index 0108131e4a9e9e2ad3b5ab5e646fddbfeb2510bb..4fede22d4f8a3d9f9d549a08ce858a625c69c582 100644 (file)
@@ -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;