diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-03-26 21:25:51 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-03-26 21:25:51 +0000 |
commit | a0893a20e50af2deb56e6cfee0b455e310a5805a (patch) | |
tree | 5870c8ae4543913dc9cd5a461ec6433017f65140 /uid.c | |
parent | f27916a7f27f00e1d2325538e55923c505706527 (diff) | |
download | fetchmail-a0893a20e50af2deb56e6cfee0b455e310a5805a.tar.gz fetchmail-a0893a20e50af2deb56e6cfee0b455e310a5805a.tar.bz2 fetchmail-a0893a20e50af2deb56e6cfee0b455e310a5805a.zip |
Prevent pathological circular lists.
svn path=/trunk/; revision=1730
Diffstat (limited to 'uid.c')
-rw-r--r-- | uid.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -277,7 +277,7 @@ int delete_str(struct idlist **idl, int num) void append_str_list(struct idlist **idl, struct idlist **nidl) /* append nidl to idl (does not copy *) */ { - if ((*nidl) == (struct idlist *)NULL) + if ((*nidl) == (struct idlist *)NULL || *nidl == *idl) return; else if ((*idl) == (struct idlist *)NULL) *idl = *nidl; |