Skip to content

Commit

Permalink
fix: server sending "227 Logout." response
Browse files Browse the repository at this point in the history
Sometimes if the data connection for passive mode was interrupted, the
server would send "227 Logout." response. However this response was
being blocked by Linux's netfiter connection tracking FTP helper.
  • Loading branch information
Matěj Vrba committed Sep 12, 2024
1 parent 3294249 commit 9dc79d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ftp_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ void parser(void)
die(421, LOG_INFO, MSG_TIMEOUT_PARSER);
#endif
case -2:
return;
die(425, LOG_INFO, MSG_LOGOUT);
}
#ifdef DEBUG
if (debug != 0) {
Expand Down

0 comments on commit 9dc79d1

Please sign in to comment.