diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-14 18:52:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-14 18:52:15 +0100 |
commit | d00821e77f72d4af4ea30158c1c6e18ffff0875b (patch) | |
tree | b28b6cb077ae6b2457e30d49028fc978d8e2b59b /dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.26-send-imap-logout.patch | |
parent | 36ac65103bf5503e5bad1ecc7e8cb9e7643f6840 (diff) | |
parent | 6a339b4f9ec107438bb71a6f9ca72fd42fbfd436 (diff) |
Merge branch 'next'
Diffstat (limited to 'dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.26-send-imap-logout.patch')
-rw-r--r-- | dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.26-send-imap-logout.patch | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.26-send-imap-logout.patch b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.26-send-imap-logout.patch deleted file mode 100644 index d8b4b6efc3f8..000000000000 --- a/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.26-send-imap-logout.patch +++ /dev/null @@ -1,48 +0,0 @@ ---- cyrus-sasl2.orig/saslauthd/auth_rimap.c -+++ cyrus-sasl2/saslauthd/auth_rimap.c -@@ -90,6 +90,7 @@ static struct addrinfo *ai = NULL; /* re - service we connect to. */ - #define TAG "saslauthd" /* IMAP command tag */ - #define LOGIN_CMD (TAG " LOGIN ") /* IMAP login command (with tag) */ -+#define LOGOUT_CMD (TAG " LOGOUT ") /* IMAP logout command (with tag)*/ - #define NETWORK_IO_TIMEOUT 30 /* network I/O timeout (seconds) */ - #define RESP_LEN 1000 /* size of read response buffer */ - -@@ -307,10 +308,12 @@ auth_rimap ( - int s=-1; /* socket to remote auth host */ - struct addrinfo *r; /* remote socket address info */ - struct iovec iov[5]; /* for sending LOGIN command */ -+ struct iovec iov2[2]; /* for sending LOGOUT command */ - char *qlogin; /* pointer to "quoted" login */ - char *qpass; /* pointer to "quoted" password */ - char *c; /* scratch pointer */ - int rc; /* return code scratch area */ -+ int rcl; /* return code scratch area */ - char rbuf[RESP_LEN]; /* response read buffer */ - char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; - int saved_errno; -@@ -505,6 +508,24 @@ auth_rimap ( - } - } - } -+ -+ /* close remote imap */ -+ iov2[0].iov_base = LOGOUT_CMD; -+ iov2[0].iov_len = sizeof(LOGOUT_CMD) - 1; -+ iov2[1].iov_base = "\r\n"; -+ iov2[1].iov_len = sizeof("\r\n") - 1; -+ -+ if (flags & VERBOSE) { -+ syslog(LOG_DEBUG, "auth_rimap: sending %s%s %s", -+ LOGOUT_CMD, qlogin, qpass); -+ } -+ alarm(NETWORK_IO_TIMEOUT); -+ rcl = retry_writev(s, iov2, 2); -+ alarm(0); -+ if (rcl == -1) { -+ syslog(LOG_WARNING, "auth_rimap: writev logout: %m"); -+ } -+ - (void) close(s); /* we're done with the remote */ - if (rc == -1) { - syslog(LOG_WARNING, "auth_rimap: read (response): %m"); |