diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-07 22:43:08 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-09-07 22:43:08 +0000 |
commit | 7102d8a619ca6d05b34c913c5ea0e17d1e6307a0 (patch) | |
tree | 9e8aa752eaf572da8436fed21940b0a0eb13966d /usr.sbin | |
parent | 6d7d422e656b57d1f70b412f730458f46c68ef2f (diff) |
ignore ntp_sendmsg()s return value in server_dispatch. could result in
ntpd exiting on sendmsg() failures, which is not desired.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ntpd/server.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/server.c b/usr.sbin/ntpd/server.c index fc1525e51da..28149ec33d5 100644 --- a/usr.sbin/ntpd/server.c +++ b/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 <henning@openbsd.org> @@ -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); } |