diff options
author | Eray Aslan <eras@gentoo.org> | 2011-09-02 07:21:26 +0000 |
---|---|---|
committer | Eray Aslan <eras@gentoo.org> | 2011-09-02 07:21:26 +0000 |
commit | 6efc87d16db2f32ed5677a4b0c93233b552663e1 (patch) | |
tree | 74a2010b2441881dd80513fe7a3fcfdf78e5fc21 /dev-libs/cyrus-sasl/files | |
parent | Bump to 3.0.0, from gnome overlay for GNOME 3 (diff) | |
download | gentoo-2-6efc87d16db2f32ed5677a4b0c93233b552663e1.tar.gz gentoo-2-6efc87d16db2f32ed5677a4b0c93233b552663e1.tar.bz2 gentoo-2-6efc87d16db2f32ed5677a4b0c93233b552663e1.zip |
Patch for rimap quote loop - bug #381427
(Portage version: 2.1.10.11/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/cyrus-sasl/files')
-rw-r--r-- | dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.23-rimap-loop.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.23-rimap-loop.patch b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.23-rimap-loop.patch new file mode 100644 index 000000000000..5574072d0e0d --- /dev/null +++ b/dev-libs/cyrus-sasl/files/cyrus-sasl-2.1.23-rimap-loop.patch @@ -0,0 +1,28 @@ +--- a/saslauthd/auth_rimap.c 2011-09-01 14:19:54.754622284 +0100 ++++ b/saslauthd/auth_rimap.c 2011-09-01 14:19:59.410561033 +0100 +@@ -162,6 +162,7 @@ + num_quotes = 0; + p1 = s; + while ((p1 = strchr(p1, '"')) != NULL) { ++ p1++; + num_quotes++; + } + +@@ -438,7 +439,7 @@ + syslog(LOG_WARNING, "auth_rimap: writev: %m"); + memset(qlogin, 0, strlen(qlogin)); + free(qlogin); +- memset(qpass, 0, strlen(qlogin)); ++ memset(qpass, 0, strlen(qpass)); + free(qpass); + (void)close(s); + return strdup(RESP_IERROR); +@@ -447,7 +448,7 @@ + /* don't need these any longer */ + memset(qlogin, 0, strlen(qlogin)); + free(qlogin); +- memset(qpass, 0, strlen(qlogin)); ++ memset(qpass, 0, strlen(qpass)); + free(qpass); + + /* read and parse the LOGIN response */ |