summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilip Hazel <ph10@hermes.cam.ac.uk>2006-07-17 09:21:00 +0000
committerPhilip Hazel <ph10@hermes.cam.ac.uk>2006-07-17 09:21:00 +0000
commit73a6bc4b1dc4a6f88efa1416b042b2649a3b3921 (patch)
treefd0007d83aefd6779cd1d92e0bd2b090e131c3f5 /src
parent6ec97b1bb5ba11ef3febc5ba8f9bcb4365984189 (diff)
Add errno=0 before calling getpwnam() in previous patch.
Diffstat (limited to 'src')
-rw-r--r--src/src/route.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/src/route.c b/src/src/route.c
index 436f769a2..cc0d63cb0 100644
--- a/src/src/route.c
+++ b/src/src/route.c
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/route.c,v 1.9 2006/07/14 14:00:16 ph10 Exp $ */
+/* $Cambridge: exim/src/src/route.c,v 1.10 2006/07/17 09:21:00 ph10 Exp $ */
/*************************************************
* Exim - an Internet mail transport agent *
@@ -1109,6 +1109,7 @@ if (!cache_set)
else for (;;)
{
+ errno = 0;
if ((lastpw = getpwnam(CS s)) != NULL) break;
if (++i > finduser_retries) break;
sleep(1);