Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typo in point hex check #257

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix typo in point hex check
  • Loading branch information
Vladimir Tarkhanov committed Sep 12, 2023
commit 32ef8ae5c20c1359fdaa447fa571eab5ab6d3989
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