From c0837c7e135f3896b52de6952c2ad9212d3f997f Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Sat, 15 Jul 1995 17:51:11 +0000 Subject: [PATCH] Add missing 'break' statement in failure case of ypxfr switch clause. --- gnu/usr.sbin/ypserv/server.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/usr.sbin/ypserv/server.c b/gnu/usr.sbin/ypserv/server.c index 5b16cfd676e4..06103b54e750 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 ** -** $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;