Browse Source

Do not forget to initialize head. ok henning@

OPENBSD_3_6
otto 20 years ago
parent
commit
2d0abebaa2
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/usr.sbin/ntpd/parse.y

+ 2
- 1
src/usr.sbin/ntpd/parse.y View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.10 2004/07/09 10:53:33 henning Exp $ */
/* $OpenBSD: parse.y,v 1.11 2004/07/09 19:28:03 otto Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -163,6 +163,7 @@ conf_main : LISTEN ON address {
fatal("conf_main server calloc");
h->next = NULL;
p->addr = h;
p->addr_head = h;
TAILQ_INSERT_TAIL(&conf->ntp_peers, p, entry);
}
}


Loading…
Cancel
Save