diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-10-31 13:38:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-10-31 13:38:29 +0000 |
commit | caef674e29106c14aae5e77d82e6c3ab052d3d3b (patch) | |
tree | 73417ae78d8a4ac3930b163820d4f243596bf202 /transact.c | |
parent | 8cf3fdbd139435d0696e7c16f967bbeb1ab4d701 (diff) | |
download | fetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.tar.gz fetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.tar.bz2 fetchmail-caef674e29106c14aae5e77d82e6c3ab052d3d3b.zip |
Sunil Shetye's minor fixes.
svn path=/trunk/; revision=3762
Diffstat (limited to 'transact.c')
-rw-r--r-- | transact.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -365,7 +365,8 @@ int readheaders(int sock, int from_offs, reply_to_offs, resent_from_offs; int app_from_offs, sender_offs, resent_sender_offs; int env_offs; - char *received_for, *rcv, *cp, *delivered_to; + char *received_for, *rcv, *cp; + static char *delivered_to = NULL; int n, linelen, oldlen, ch, remaining, skipcount; struct idlist *idp; flag no_local_matches = FALSE; @@ -390,6 +391,8 @@ int readheaders(int sock, if (msgblk.headers) free(msgblk.headers); free_str_list(&msgblk.recipients); + if (delivered_to) + free(delivered_to); /* initially, no message ID */ if (ctl->thisid) @@ -955,6 +958,7 @@ int readheaders(int sock, { find_server_names(delivered_to, ctl, &msgblk.recipients); free(delivered_to); + delivered_to = NULL; } else if (received_for) /* |