summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>1998-09-10 02:01:06 +0000
committertegge <tegge@FreeBSD.org>1998-09-10 02:01:06 +0000
commitb4e3d223bf7214138b267ffdcaa09453e6e6b800 (patch)
treedf2fdb63d648437f4b07cea0321ce6f9030c580d /usr.sbin/xntpd
parent69c1361306a3e8ba1331f54b0aad7deae76848c5 (diff)
downloadFreeBSD-src-b4e3d223bf7214138b267ffdcaa09453e6e6b800.zip
FreeBSD-src-b4e3d223bf7214138b267ffdcaa09453e6e6b800.tar.gz
Don't allow longjmp into a no longer valid stack frame.
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r--usr.sbin/xntpd/xntpdc/ntpdc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/xntpd/xntpdc/ntpdc.c b/usr.sbin/xntpd/xntpdc/ntpdc.c
index bb42a19..6af6d1a 100644
--- a/usr.sbin/xntpd/xntpdc/ntpdc.c
+++ b/usr.sbin/xntpd/xntpdc/ntpdc.c
@@ -914,6 +914,7 @@ docmd(cmdline)
} else {
jump = 1;
(xcmd->handler)(&pcmd, current_output);
+ jump = 0;
if (i) (void) fclose(current_output);
}
}
OpenPOWER on IntegriCloud