patch-src_daemon_c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. $OpenBSD: patch-src_daemon_c,v 1.5 2013/09/14 17:12:12 landry Exp $
  2. --- src/daemon.c.orig Wed Apr 11 20:48:33 2012
  3. +++ src/daemon.c Sun Sep 8 22:15:19 2013
  4. @@ -97,7 +97,7 @@ int daemon_listen(DRIVER_CTX *DTX) {
  5. int domain = 0; /* listening on domain socket? */
  6. int listener; /* listener fd */
  7. int i;
  8. - int port = 24, queue = 32; /* default port and queue size */
  9. + int port = 2424, queue = 32; /* default port and queue size */
  10. signal(SIGPIPE, SIG_IGN);
  11. signal(SIGINT, process_signal);
  12. @@ -561,7 +561,7 @@ void *process_connection(void *ptr) {
  13. while(ATX->users->items == 0 || invalid) {
  14. free(cmdline);
  15. - cmdline = daemon_getline(TTX, 300);
  16. + cmdline = daemon_getline(TTX, 900);
  17. while(cmdline &&
  18. (!strncasecmp(cmdline, "RCPT TO:", 8) ||
  19. @@ -620,7 +620,7 @@ void *process_connection(void *ptr) {
  20. GETCMD:
  21. free(cmdline);
  22. - cmdline = daemon_getline(TTX, 300);
  23. + cmdline = daemon_getline(TTX, 900);
  24. }
  25. if (cmdline == NULL)
  26. @@ -900,7 +900,7 @@ buffer * read_sock(THREAD_CTX *TTX, AGENT_CTX *ATX) {
  27. body = 1;
  28. }
  29. - while ((buf = daemon_getline(TTX, 300))!=NULL) {
  30. + while ((buf = daemon_getline(TTX, 900))!=NULL) {
  31. chomp(buf);
  32. if (!strcmp(buf, ".")) {
  33. @@ -992,7 +992,7 @@ char *daemon_expect(THREAD_CTX *TTX, const char *comma
  34. char buf[128];
  35. char *cmd;
  36. - cmd = daemon_getline(TTX, 300);
  37. + cmd = daemon_getline(TTX, 900);
  38. if (cmd == NULL)
  39. return NULL;
  40. @@ -1007,7 +1007,7 @@ char *daemon_expect(THREAD_CTX *TTX, const char *comma
  41. return NULL;
  42. free(cmd);
  43. if (!strncasecmp(command, "LHLO", 4)) {
  44. - cmd = daemon_getline(TTX, 300);
  45. + cmd = daemon_getline(TTX, 900);
  46. if (cmd == NULL)
  47. return NULL;
  48. } else {
  49. @@ -1018,7 +1018,7 @@ char *daemon_expect(THREAD_CTX *TTX, const char *comma
  50. if (send_socket(TTX, buf)<=0)
  51. return NULL;
  52. free(cmd);
  53. - cmd = daemon_getline(TTX, 300);
  54. + cmd = daemon_getline(TTX, 900);
  55. if (cmd == NULL)
  56. return NULL;
  57. }