fixed invalid return in send_to_all

This commit is contained in:
Václav Šmejkal 2023-03-31 18:12:56 +02:00
parent e0e82d2570
commit efa1d24047
Signed by: ENGO150
GPG Key ID: 4A57E86482968843

View File

@ -146,7 +146,7 @@ void *send_to_all(void *json)
//PARSE
struct json_object *json_obj = json_tokener_parse((char*) json);
if (json_obj == NULL) return; //EXIT IF INVALID SYNTAX WAS SENT
if (json_obj == NULL) return NULL; //EXIT IF INVALID SYNTAX WAS SENT
do //SEND TO ALL CONNECTIONS
{