"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main.c" between
proftpd-1.3.6b.tar.gz and proftpd-1.3.6c.tar.gz

About: ProFTPD is a highly configurable FTP server software (with FTPS and SFTP support).

main.c  (proftpd-1.3.6b):main.c  (proftpd-1.3.6c)
skipping to change at line 903 skipping to change at line 903
#else #else
return; return;
#endif /* PR_DEVEL_NO_DAEMON */ #endif /* PR_DEVEL_NO_DAEMON */
} }
/* Data received, reset idle timer */ /* Data received, reset idle timer */
if (pr_data_get_timeout(PR_DATA_TIMEOUT_IDLE) > 0) { if (pr_data_get_timeout(PR_DATA_TIMEOUT_IDLE) > 0) {
pr_timer_reset(PR_TIMER_IDLE, ANY_MODULE); pr_timer_reset(PR_TIMER_IDLE, ANY_MODULE);
} }
if (cmd) { if (cmd != NULL) {
/* Detect known commands for other protocols; if found, drop the /* Detect known commands for other protocols; if found, drop the
* connection, lest we be used as part of an attack on a different * connection, lest we be used as part of an attack on a different
* protocol server (Bug#4143). * protocol server (Bug#4143).
*/ */
if (cmd->is_ftp == FALSE) { if (cmd->is_ftp == FALSE) {
pr_log_pri(PR_LOG_WARNING, pr_log_pri(PR_LOG_WARNING,
"client sent %s command '%s', disconnecting", cmd->protocol, "client sent %s command '%s', disconnecting", cmd->protocol,
(char *) cmd->argv[0]); (char *) cmd->argv[0]);
pr_event_generate("core.bad-protocol", cmd); pr_event_generate("core.bad-protocol", cmd);
pr_session_disconnect(NULL, PR_SESS_DISCONNECT_BAD_PROTOCOL, pr_session_disconnect(NULL, PR_SESS_DISCONNECT_BAD_PROTOCOL,
cmd->protocol); cmd->protocol);
} }
pr_cmd_dispatch(cmd); pr_cmd_dispatch(cmd);
destroy_pool(cmd->pool); destroy_pool(cmd->pool);
session.curr_cmd = NULL;
session.curr_cmd_id = 0;
session.curr_cmd_rec = NULL;
} else { } else {
pr_event_generate("core.invalid-command", NULL); pr_event_generate("core.invalid-command", NULL);
pr_response_send(R_500, _("Invalid command: try being more creative")); pr_response_send(R_500, _("Invalid command: try being more creative"));
} }
/* Release any working memory allocated in inet */ /* Release any working memory allocated in inet */
pr_inet_clear(); pr_inet_clear();
} }
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)