diff options
Diffstat (limited to 'src/src/acl.c')
-rw-r--r-- | src/src/acl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/src/acl.c b/src/src/acl.c index b62af5c65..bdc2b351d 100644 --- a/src/src/acl.c +++ b/src/src/acl.c @@ -738,7 +738,7 @@ while ((s = (*func)())) int v, c; BOOL negated = FALSE; uschar *saveline = s; - uschar name[64]; + uschar name[EXIM_DRIVERNAME_MAX]; /* Conditions (but not verbs) are allowed to be negated by an initial exclamation mark. */ @@ -4473,7 +4473,8 @@ switch (where) /* Drop cutthrough conns, and drop heldopen verify conns if the previous was not DATA */ { - uschar prev = smtp_connection_had[smtp_ch_index-2]; + uschar prev = + smtp_connection_had[SMTP_HBUFF_PREV(SMTP_HBUFF_PREV(smtp_ch_index))]; BOOL dropverify = !(prev == SCH_DATA || prev == SCH_BDAT); cancel_cutthrough_connection(dropverify, US"quit or conndrop"); |