Browse Source

ignore ntp_sendmsg()s return value in server_dispatch. could result in

ntpd exiting on sendmsg() failures, which is not desired.
OPENBSD_3_6
henning 19 years ago
parent
commit
003e3aa51d
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/usr.sbin/ntpd/server.c

+ 3
- 2
src/usr.sbin/ntpd/server.c View File

@ -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);
}

Loading…
Cancel
Save