diff options
author | David Champion <dgc@bikeshed.us> | 2005-09-20 06:43:39 +0000 |
---|---|---|
committer | David Champion <dgc@bikeshed.us> | 2005-09-20 06:43:39 +0000 |
commit | bd1c30017fed27f72ac02c45e0bf7398444e15cc (patch) | |
tree | 37264bbef96fc57b3080ff3d7fce111888b4bdb2 /init.c | |
parent | 39ba1a482f8a53390bcddc953bc594198d3bc0f0 (diff) |
Fix a null-pointer-dereference parsing aliases with -d3+.
Diffstat (limited to 'init.c')
-rw-r--r-- | init.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -941,7 +941,8 @@ static int parse_alias (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) if (debuglevel >= 2) { ADDRESS *a; - for (a = tmp->addr; a; a = a->next) + /* A group is terminated with an empty address, so check a->mailbox */ + for (a = tmp->addr; a && a->mailbox; a = a->next) { if (!a->group) dprint (2, (debugfile, "parse_alias: %s\n", |