aboutsummaryrefslogtreecommitdiffstats
path: root/pop3.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-11-04 22:56:43 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-11-04 22:56:43 +0000
commit9b699b1aebb24f4f42b0c8b89a497339fc1e1499 (patch)
treeea5a8eba6dc8eefa7449e9d1a70fd340cea78595 /pop3.c
parent6a4065ca0329496d53046e3895d8d536d7ac1c24 (diff)
downloadfetchmail-9b699b1aebb24f4f42b0c8b89a497339fc1e1499.tar.gz
fetchmail-9b699b1aebb24f4f42b0c8b89a497339fc1e1499.tar.bz2
fetchmail-9b699b1aebb24f4f42b0c8b89a497339fc1e1499.zip
Insert fseeks to prevent read-write lossage.
svn path=/trunk/; revision=485
Diffstat (limited to 'pop3.c')
-rw-r--r--pop3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pop3.c b/pop3.c
index 4e5afe4b..cbe6ac0f 100644
--- a/pop3.c
+++ b/pop3.c
@@ -182,6 +182,7 @@ int *countp, *newp;
if (!uid_in_list(&ctl->oldsaved, id))
(*newp)++;
}
+ fseek(sockfp, 0L, SEEK_CUR);
}
}
}
@@ -217,6 +218,7 @@ int *sizes;
else
sizes[num - 1] = -1;
}
+ fseek(sockfp, 0L, SEEK_CUR);
return(0);
}