Skip to content

Commit

Permalink
Merge pull request albertobsd#257 from shude/issue-255
Browse files Browse the repository at this point in the history
Fix typo in point hex check
  • Loading branch information
albertobsd authored Nov 11, 2023
2 parents 529de6b + 138ae66 commit 682e656
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 682e656

Please sign in to comment.