quitting communication with user on invalid packet receive
This commit is contained in:
parent
8d387df7d7
commit
0a1cb72f5d
@ -318,6 +318,8 @@ void *why2_communicate_thread(void *arg)
|
|||||||
//READ
|
//READ
|
||||||
raw = read_socket_raw(connection.connection);
|
raw = read_socket_raw(connection.connection);
|
||||||
|
|
||||||
|
if (raw == NULL) break; //QUIT COMMUNICATION IF INVALID PACKET WAS RECEIVED
|
||||||
|
|
||||||
//REMOVE CONTROL CHARACTERS FROM raw
|
//REMOVE CONTROL CHARACTERS FROM raw
|
||||||
for (size_t i = 0; i < strlen(raw); i++)
|
for (size_t i = 0; i < strlen(raw); i++)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user