diff options
author | Eduardo Chappa <chappa@washington.edu> | 2016-08-11 21:14:43 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2016-08-11 21:14:43 -0600 |
commit | aa5a0714e2ae3c401ac9e6901dde87ad70568d8c (patch) | |
tree | 77499e2bf845fe982004d88fb42a71ed8a15ccd7 /pith/icache.c | |
parent | 3d3df2b3153af567b6b17c05052ab21e9b2e9a00 (diff) | |
download | alpine-aa5a0714e2ae3c401ac9e6901dde87ad70568d8c.tar.xz |
* Protect all calls to mail_elt in pith/ and alpine/ code. Protect means
to check for correct range of message number before calling mail_elt.
* Work in progress: correct some uses of system calls that do not check
for returned value. This work will follow the lead given by Christian
Kujau and Asheesh Laroia. Expect more changes of this type in
subsequent commits.
Diffstat (limited to 'pith/icache.c')
-rw-r--r-- | pith/icache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pith/icache.c b/pith/icache.c index d69c6134..eeb0ff35 100644 --- a/pith/icache.c +++ b/pith/icache.c @@ -45,7 +45,7 @@ clear_index_cache_ent(MAILSTREAM *stream, long int msgno, unsigned int flags) MESSAGECACHE *mc; if(stream){ - if(flags && IC_USE_RAW_MSGNO) + if(flags & IC_USE_RAW_MSGNO) rawno = msgno; else rawno = mn_m2raw(sp_msgmap(stream), msgno); |