2 ===================================================================
3 RCS file: /cvsroot/proftp/proftpd/src/ctrls.c,v
4 retrieving revision 1.14
6 --- src/ctrls.c 24 Oct 2006 16:13:31 -0000 1.14
7 +++ src/ctrls.c 8 Dec 2006 17:02:34 -0000
12 + if (reqarglen >= sizeof(reqaction)) {
13 + pr_signals_unblock();
18 + memset(reqaction, '\0', sizeof(reqaction));
20 if (read(cl->cl_fd, reqaction, reqarglen) < 0) {
25 + reqaction[sizeof(reqaction)-1] = '\0';
28 /* Find a matching action object, and use it to populate a ctrl object,
33 - memset(response, '\0', sizeof(response));
35 /* Make sure resparglen is not too big */
36 - if (resparglen > sizeof(response)) {
37 + if (resparglen >= sizeof(response)) {
43 - bread = read(ctrls_sockfd, response, resparglen);
44 + memset(response, '\0', sizeof(response));
46 + bread = read(ctrls_sockfd, response, resparglen);
47 while (bread != resparglen) {