Check-in Number:
|
4476 | |
Date: |
2004-Apr-02 15:55:37 (local)
2004-Apr-02 13:55:37 (UTC) |
User: | thl |
Branch: | |
Comment: |
fix problem where ACLs could not be set due to improper assumption of C compiler operator precedence. Reported by Amos Gouaux |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/lmtp2nntp/lmtp2nntp_config.c 1.95 -> 1.96
--- lmtp2nntp_config.c 2004/04/02 13:52:50 1.95
+++ lmtp2nntp_config.c 2004/04/02 13:55:37 1.96
@@ -286,7 +286,7 @@
}
/* if only blocking ACLs exist, reserve space for two additional pass-through wildcards */
- ctx->pacl = (struct acl *)mallocex((ov->ndata + somepass ? 0 : 2 ) * sizeof(struct acl));
+ ctx->pacl = (struct acl *)mallocex((ov->ndata + (somepass ? 0 : 2 )) * sizeof(struct acl));
if (ov->ndata >= 1) {
for (i = 0; i < ov->ndata; i++) {
|
|