Skip to content

Commit

Permalink
Fix typo in point hex check
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Tarkhanov committed Sep 12, 2023
1 parent f56ff67 commit 32ef8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bsgsd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 32ef8ae

Please sign in to comment.