document Bug 885
ntp_io.c:
Bug 885: use emalloc() to get a message at the end of the memory
cmd_args.c:
Bug 885: unsigned types cannot be less than 0
default_ai_family is a short
ntp_config.c:
Bug 885: lose trailing , from enum list
bk: 46bdf242qHYJ8PcLVjFeXX1z4oL28A
+* [Bug 885] use emalloc() to get a message at the end of the memory
+ unsigned types cannot be less than 0
+ default_ai_family is a short
+ lose trailing , from enum list
* [Bug 884] don't access recv buffers after having them passed to the free list.
* [Bug 882] allow loopback interfaces to share addresses with other interfaces.
*/
extern char const *progname;
extern const char *specific_interface;
-extern int default_ai_family;
+extern short default_ai_family;
#ifdef HAVE_NETINFO
extern int check_netinfo;
const char* p = *pp++;
tkey = (int)atol(p);
- if (tkey <= 0 || tkey > NTP_MAXKEY) {
+ if (tkey = 0 || tkey > NTP_MAXKEY) {
msyslog(LOG_ERR,
"command line trusted key %s is invalid",
p);
enum gnn_type {
t_UNK, /* Unknown */
t_REF, /* Refclock */
- t_MSK, /* Network Mask */
+ t_MSK /* Network Mask */
};
static int getnetnum P((const char *, struct sockaddr_storage *, int,
enum gnn_type));
*/
static void
add_fd_to_list(SOCKET fd, enum desc_type type) {
- vsock_t *lsock = (vsock_t *)malloc(sizeof(vsock_t));
+ vsock_t *lsock = (vsock_t *)emalloc(sizeof(vsock_t));
lsock->fd = fd;
lsock->type = type;