summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1995-07-15 17:51:11 +0000
committerwpaul <wpaul@FreeBSD.org>1995-07-15 17:51:11 +0000
commit5322c9c163907cbc48e6900714978697db297fb7 (patch)
tree484a3b23cb73cd80fbe7542ed90cf85c798cab21 /gnu
parentd5c4604efbdd50c38eb71ae61b961d4c36135a8d (diff)
downloadFreeBSD-src-5322c9c163907cbc48e6900714978697db297fb7.zip
FreeBSD-src-5322c9c163907cbc48e6900714978697db297fb7.tar.gz
Add missing 'break' statement in failure case of ypxfr switch clause.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.sbin/ypserv/server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/usr.sbin/ypserv/server.c b/gnu/usr.sbin/ypserv/server.c
index 5b16cfd..06103b5 100644
--- a/gnu/usr.sbin/ypserv/server.c
+++ b/gnu/usr.sbin/ypserv/server.c
@@ -24,7 +24,7 @@
** Ported to FreeBSD and hacked all to pieces
** by Bill Paul <wpaul@ctr.columbia.edu>
**
-** $Id: server.c,v 1.7 1995/07/02 18:48:21 wpaul Exp $
+** $Id: server.c,v 1.9 1995/07/14 01:56:49 wpaul Exp $
**
*/
@@ -861,7 +861,7 @@ ypresp_xfr *ypproc_xfr_2_svc(ypreq_xfr *xfr,
switch(fork())
{
case 0:
- {
+ {
char g[11], t[11], p[11];
sprintf (ypxfr_command, "%s/ypxfr", INSTDIR);
@@ -873,10 +873,13 @@ ypresp_xfr *ypproc_xfr_2_svc(ypreq_xfr *xfr,
inet_ntoa(rqhost->sin_addr), p, xfr->map_parms.map, NULL);
Perror("ypxfr execl(): %s",strerror(errno));
exit(0);
- }
+ }
case -1:
+ {
Perror("fork(): %s",strerror(errno));
result.xfrstat = YPXFR_XFRERR;
+ break;
+ }
default:
{
result.xfrstat = YPXFR_SUCC;
OpenPOWER on IntegriCloud