@ -1179,7 +1179,13 @@ void LPinit(uint16_t myport,uint16_t mypullport,uint16_t mypubport,uint16_t mybu
usleep(1000);
else if ( IAMLP == 0 )
printf("mainloop\n");
if ( (rand() % 10000) == 0 )
{
int32_t sock = LP_bindsock;
printf("bindsock reset test\n");
LP_bindsock = -1;
closesocket(sock);
}
#endif
@ -826,6 +826,7 @@ int32_t LP_passphrase_init(char *passphrase,char *gui)
G.LP_sessionid = (uint32_t)time(NULL);
safecopy(G.gui,gui,sizeof(G.gui));
G.USERPASS_COUNTER = counter;
G.initializing = 0;
return(0);