]> git.pld-linux.org Git - packages/mutt.git/blame - mutt-sasl-fixes.patch
- massive change ( validate errors warrings from desktop-file-validate)
[packages/mutt.git] / mutt-sasl-fixes.patch
CommitLineData
5ff5ea1b
JB
1--- mutt-1.4.2.2/imap/auth_sasl.c.orig 2006-08-21 20:08:06.165971000 +0200
2+++ mutt-1.4.2.2/imap/auth_sasl.c 2006-08-21 20:32:39.285971000 +0200
3@@ -32,7 +32,7 @@
4 sasl_conn_t* saslconn;
5 sasl_interact_t* interaction = NULL;
6 int rc, irc;
7- char buf[LONG_STRING];
8+ char buf[HUGE_STRING];
9 const char* mech;
10 const char* pc = NULL;
11 unsigned int len, olen;
12@@ -107,7 +107,7 @@
13 if (irc == IMAP_CMD_RESPOND)
14 {
15 if (sasl_decode64 (idata->cmd.buf+2, strlen (idata->cmd.buf+2), buf,
16- LONG_STRING,&len) != SASL_OK)
17+ LONG_STRING-1, &len) != SASL_OK)
18 {
19 dprint (1, (debugfile, "imap_auth_sasl: error base64-decoding server response.\n"));
20 goto bail;
21--- mutt-1.4.2.2/mutt_sasl.c.orig 2006-08-21 20:08:06.205971000 +0200
22+++ mutt-1.4.2.2/mutt_sasl.c 2006-08-21 20:31:54.415971000 +0200
23@@ -383,7 +383,6 @@
24
25 /* release sasl resources */
26 sasl_dispose (&sasldata->saslconn);
27- FREE (&sasldata->buf);
28 FREE (&sasldata);
29
30 /* call underlying close */
31@@ -415,7 +414,6 @@
32
33 conn->sockdata = sasldata->sockdata;
34
35- FREE (&sasldata->buf);
36 sasldata->bpos = 0;
37 sasldata->blen = 0;
38
39@@ -486,7 +484,6 @@
40 }
41
42 rc = (sasldata->write) (conn, pbuf, plen);
43- FREE (&pbuf);
44 if (rc != plen)
45 goto fail;
46
This page took 0.036637 seconds and 4 git commands to generate.