From 003e3aa51d77a242793801e055a275a19c156539 Mon Sep 17 00:00:00 2001 From: henning <> Date: Tue, 7 Sep 2004 22:43:07 +0000 Subject: [PATCH] ignore ntp_sendmsg()s return value in server_dispatch. could result in ntpd exiting on sendmsg() failures, which is not desired. --- src/usr.sbin/ntpd/server.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/usr.sbin/ntpd/server.c b/src/usr.sbin/ntpd/server.c index fc1525e5..28149ec3 100644 --- a/src/usr.sbin/ntpd/server.c +++ b/src/usr.sbin/ntpd/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.12 2004/07/18 13:26:53 henning Exp $ */ +/* $OpenBSD: server.c,v 1.13 2004/09/07 22:43:07 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -142,5 +142,6 @@ server_dispatch(int fd, struct ntpd_conf *conf) else reply.refid = 0; /* XXX */ - return (ntp_sendmsg(fd, (struct sockaddr *)&fsa, &reply, size, 0)); + ntp_sendmsg(fd, (struct sockaddr *)&fsa, &reply, size, 0); + return (0); }