aboutsummaryrefslogtreecommitdiff
path: root/networking/inetd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/inetd.c')
-rw-r--r--networking/inetd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/inetd.c b/networking/inetd.c
index 49ca7a36e..a17d28ebf 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -908,7 +908,6 @@ static void config (int sig ATTRIBUTE_UNUSED)
{
servtab_t *sep, *cp, **sepp;
sigset_t omask;
- int add;
size_t n;
char protoname[10];
@@ -923,7 +922,7 @@ static void config (int sig ATTRIBUTE_UNUSED)
for (sep = servtab; sep; sep = sep->se_next)
if (matchconf (sep, cp))
break;
- add = 0;
+
if (sep != 0) {
int i;
@@ -958,7 +957,6 @@ static void config (int sig ATTRIBUTE_UNUSED)
#endif
sigprocmask(SIG_UNBLOCK, &omask, NULL);
freeconfig (cp);
- add = 1;
} else {
sep = enter (cp);
}