aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2001-10-04 09:12:35 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2001-10-04 09:12:35 +0000
commitfc1801e3e90a8dc24dcc43d987218ba4f4f2d2ba (patch)
tree2295a40abfe0a62acc37fc8d3258349f1b7ca478
parent30a4159905491cf36c3fecccf062c57e597f0fb3 (diff)
downloadsrc-fc1801e3e90a8dc24dcc43d987218ba4f4f2d2ba.tar.gz
src-fc1801e3e90a8dc24dcc43d987218ba4f4f2d2ba.zip
MFC: 1.18: Terminate the array of execv(3) pointers by a NULL pointer.
Notes
Notes: svn path=/stable/3/; revision=84456
-rw-r--r--libexec/fingerd/fingerd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c
index 3420f93f6173..35a2061d5a13 100644
--- a/libexec/fingerd/fingerd.c
+++ b/libexec/fingerd/fingerd.c
@@ -156,8 +156,10 @@ main(argc, argv)
av[1] = "-l";
comp = &av[0];
}
- else if (++ap == av + ENTRIES)
+ else if (++ap == av + ENTRIES) {
+ *ap = NULL;
break;
+ }
lp = NULL;
}