Changeset 5045:29ceb4442588
- Timestamp:
- 2007-04-02 11:00:22 (22 months ago)
- Author:
- Brendan Cully <brendan@…>
- Branch:
- HEAD
- Message:
-
Fix segfault in new mboxcache hcache check when create is 0
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r5043
|
r5045
|
|
| 1 | | 2007-04-02 10:02 -0700 Brendan Cully <brendan@kublai.com> (becbad651ecc) |
| | 1 | 2007-04-02 10:48 -0700 Brendan Cully <brendan@kublai.com> (aa6f191cfa10) |
| | 2 | |
| | 3 | * imap/command.c, imap/imap.c, imap/imap_private.h, imap/message.c: |
| | 4 | Add create flag to imap_mboxcache_get |
| | 5 | |
| | 6 | * imap/command.c, imap/imap.c: Push mbox cache header cache check |
| | 7 | into imap_mboxcache_get |
| 2 | 8 | |
| 3 | 9 | * imap/imap.c: Cache IMAP access checks |
-
|
r5044
|
r5045
|
|
| 1617 | 1617 | uidvalidity = mutt_hcache_fetch_raw (hc, "/UIDVALIDITY", imap_hcache_keylen); |
| 1618 | 1618 | uidnext = mutt_hcache_fetch_raw (hc, "/UIDNEXT", imap_hcache_keylen); |
| | 1619 | mutt_hcache_close (hc); |
| 1619 | 1620 | if (uidvalidity) |
| 1620 | 1621 | { |
| | 1622 | if (!status) |
| | 1623 | { |
| | 1624 | FREE (&uidvalidity); |
| | 1625 | FREE (&uidnext); |
| | 1626 | return imap_mboxcache_get (idata, mbox, 1); |
| | 1627 | } |
| 1621 | 1628 | status->uidvalidity = *uidvalidity; |
| 1622 | 1629 | status->uidnext = uidnext ? *uidnext: 0; |
| … |
… |
|
| 1626 | 1633 | FREE (&uidvalidity); |
| 1627 | 1634 | FREE (&uidnext); |
| 1628 | | mutt_hcache_close (hc); |
| 1629 | 1635 | } |
| 1630 | 1636 | #endif |