12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- $OpenBSD: patch-src_daemon_c,v 1.5 2013/09/14 17:12:12 landry Exp $
- --- src/daemon.c.orig Wed Apr 11 20:48:33 2012
- +++ src/daemon.c Sun Sep 8 22:15:19 2013
- @@ -97,7 +97,7 @@ int daemon_listen(DRIVER_CTX *DTX) {
- int domain = 0; /* listening on domain socket? */
- int listener; /* listener fd */
- int i;
- - int port = 24, queue = 32; /* default port and queue size */
- + int port = 2424, queue = 32; /* default port and queue size */
-
- signal(SIGPIPE, SIG_IGN);
- signal(SIGINT, process_signal);
- @@ -561,7 +561,7 @@ void *process_connection(void *ptr) {
-
- while(ATX->users->items == 0 || invalid) {
- free(cmdline);
- - cmdline = daemon_getline(TTX, 300);
- + cmdline = daemon_getline(TTX, 900);
-
- while(cmdline &&
- (!strncasecmp(cmdline, "RCPT TO:", 8) ||
- @@ -620,7 +620,7 @@ void *process_connection(void *ptr) {
-
- GETCMD:
- free(cmdline);
- - cmdline = daemon_getline(TTX, 300);
- + cmdline = daemon_getline(TTX, 900);
- }
-
- if (cmdline == NULL)
- @@ -900,7 +900,7 @@ buffer * read_sock(THREAD_CTX *TTX, AGENT_CTX *ATX) {
- body = 1;
- }
-
- - while ((buf = daemon_getline(TTX, 300))!=NULL) {
- + while ((buf = daemon_getline(TTX, 900))!=NULL) {
- chomp(buf);
-
- if (!strcmp(buf, ".")) {
- @@ -992,7 +992,7 @@ char *daemon_expect(THREAD_CTX *TTX, const char *comma
- char buf[128];
- char *cmd;
-
- - cmd = daemon_getline(TTX, 300);
- + cmd = daemon_getline(TTX, 900);
- if (cmd == NULL)
- return NULL;
-
- @@ -1007,7 +1007,7 @@ char *daemon_expect(THREAD_CTX *TTX, const char *comma
- return NULL;
- free(cmd);
- if (!strncasecmp(command, "LHLO", 4)) {
- - cmd = daemon_getline(TTX, 300);
- + cmd = daemon_getline(TTX, 900);
- if (cmd == NULL)
- return NULL;
- } else {
- @@ -1018,7 +1018,7 @@ char *daemon_expect(THREAD_CTX *TTX, const char *comma
- if (send_socket(TTX, buf)<=0)
- return NULL;
- free(cmd);
- - cmd = daemon_getline(TTX, 300);
- + cmd = daemon_getline(TTX, 900);
- if (cmd == NULL)
- return NULL;
- }
|