From 32ef8ae5c20c1359fdaa447fa571eab5ab6d3989 Mon Sep 17 00:00:00 2001 From: Vladimir Tarkhanov Date: Tue, 12 Sep 2023 10:47:49 +0300 Subject: [PATCH] Fix typo in point hex check --- bsgsd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsgsd.cpp b/bsgsd.cpp index cf33d6e..53e58aa 100644 --- a/bsgsd.cpp +++ b/bsgsd.cpp @@ -2383,7 +2383,7 @@ void* client_handler(void* arg) { close(client_fd); pthread_exit(NULL); } - if(!(isValidHex(t.tokens[1]) && isValidHex(t.tokens[1]))) { + if(!(isValidHex(t.tokens[1]) && isValidHex(t.tokens[2]))) { printf("Invalid hexadecimal format from client %s:%s\n",t.tokens[1],t.tokens[2]); freetokenizer(&t); sendstr(client_fd,"400 Bad Request");