]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
ChangeLog:
authorFrank Kardel <kardel@ntp.org>
Sat, 11 Aug 2007 17:30:42 +0000 (17:30 +0000)
committerFrank Kardel <kardel@ntp.org>
Sat, 11 Aug 2007 17:30:42 +0000 (17:30 +0000)
  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

ChangeLog
ntpd/cmd_args.c
ntpd/ntp_config.c
ntpd/ntp_io.c

index d319c155b8e3e5d40746951b54d42179e4684942..9d8451d9308326d45fa65bff09da19d5be73b662 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+* [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.
 
index c71167ec1bb6a69b34b03897b8dabf89d60fcab6..91f376f7759713ea3aec0e3704ac67055232b901 100644 (file)
@@ -23,7 +23,7 @@
  */
 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;
@@ -126,7 +126,7 @@ getCmdOpts(
                        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);
index d4ba6b42af73d961e10421b3ee32f278a16463f8..05af3ffc2074d549e903e694405c32aec7f90ee1 100644 (file)
@@ -406,7 +406,7 @@ static      int matchkey P((char *, struct keyword *, int));
 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));
index 395f4780d58a598501d2a91ddd61446caf76de37..ae0208ae1806576f374cbbcab7a9e4ca4726ea35 100644 (file)
@@ -3591,7 +3591,7 @@ kill_asyncio(int startfd)
  */
 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;