diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-04-13 12:24:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2012-04-13 12:24:52 +0000 |
commit | c62d3c7016e5247f93b7618d75404841de76d85c (patch) | |
tree | 27b929bb4f6965e59fe58e4cde40d6c3894a5041 /libexec | |
parent | ff1803867a2644f9b3a317aca62a3557ea28773c (diff) |
Don't assume that the new conffd is a unset in the fd_set, it could be a
recyle of a fd which is still set.
ok claudio
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/spamd/spamd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/spamd/spamd.c b/libexec/spamd/spamd.c index b860f6d59ef..29245a05d0e 100644 --- a/libexec/spamd/spamd.c +++ b/libexec/spamd/spamd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: spamd.c,v 1.108 2010/01/14 00:44:12 beck Exp $ */ +/* $OpenBSD: spamd.c,v 1.109 2012/04/13 12:24:51 deraadt Exp $ */ /* * Copyright (c) 2002-2007 Bob Beck. All rights reserved. @@ -1451,8 +1451,7 @@ jail: close(conffd); conffd = -1; } - } - if (conffd != -1 && FD_ISSET(conffd, fdsr)) + } else if (conffd != -1 && FD_ISSET(conffd, fdsr)) do_config(); if (trapfd != -1 && FD_ISSET(trapfd, fdsr)) read_configline(trapcfg); |