summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-07-02 20:32:39 +0000
committerStef Walter <stef@memberwebs.com>2008-07-02 20:32:39 +0000
commitd8f7b96b39016dc6976a80d46eaebea950b89b55 (patch)
tree602587cb94d5e168ad8453d9a6354689417b0aae
parent7ad0489523ada84a8f5f0497befc8684fb6f5f79 (diff)
Version 0.2
-rw-r--r--ChangeLog4
-rw-r--r--configure.in4
-rw-r--r--plugin/dnsnotify.c2
-rw-r--r--tools/notify-dns-slaves.c8
4 files changed, 15 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 883c9fc..1ebb262 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,2 +1,6 @@
+Version 0.2
+ - Lookup zone name properly
+ - Fix crashers and build problems
+
Version 0.1
- Initial version
diff --git a/configure.in b/configure.in
index f366211..34eedb4 100644
--- a/configure.in
+++ b/configure.in
@@ -36,8 +36,8 @@ dnl Stef Walter <stef@memberwebs.com>
dnl
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(slapi-dnsnotify, 0.1, stef@memberwebs.com)
-AM_INIT_AUTOMAKE(slapi-dnsnotify, 0.1)
+AC_INIT(slapi-dnsnotify, 0.2, stef@memberwebs.com)
+AM_INIT_AUTOMAKE(slapi-dnsnotify, 0.2)
LDFLAGS="$LDFLAGS -L/usr/local/lib"
CFLAGS="$CFLAGS -I/usr/local/include"
diff --git a/plugin/dnsnotify.c b/plugin/dnsnotify.c
index c24b90c..58f4bec 100644
--- a/plugin/dnsnotify.c
+++ b/plugin/dnsnotify.c
@@ -269,7 +269,7 @@ notify_dns_slaves (char *zone, char **ns)
if (write_all (dnsnotify_pipe, "NOTIFY: ", 8) < 0 ||
write_all (dnsnotify_pipe, zone, strlen (zone)) < 0 ||
write_all (dnsnotify_pipe, " ", 1) < 0 ||
- write_all (dnsnotify_pipe, *ns, strlen (*ns)) < 0 ||
+ write_all (dnsnotify_pipe, n, strlen (n)) < 0 ||
write_all (dnsnotify_pipe, "\n", 1) < 0) {
if (errno == EPIPE) {
complete = 0;
diff --git a/tools/notify-dns-slaves.c b/tools/notify-dns-slaves.c
index a21ca1b..dfe74d1 100644
--- a/tools/notify-dns-slaves.c
+++ b/tools/notify-dns-slaves.c
@@ -136,6 +136,7 @@ typedef struct _notification {
static notification *the_notifications = NULL;
#define WHITESPACE " \t\r\n\v"
+#define LOG_NORMAL 1
/* --------------------------------------------------------------------------------
* WARNINGS AND LOGGING
@@ -148,8 +149,10 @@ vmessage(int level, int erno, const char* msg, va_list ap)
char buf[MAX_MSGLEN];
size_t len;
+#if LOG_NORMAL
if(debug_level < level)
return;
+#endif
assert (msg);
@@ -166,7 +169,9 @@ vmessage(int level, int erno, const char* msg, va_list ap)
}
/* Either to syslog or stderr */
+#if LOG_NORMAL
if (is_helper && level != LOG_DEBUG)
+#endif
vsyslog (level, buf, ap);
vwarnx (buf, ap);
@@ -435,6 +440,9 @@ address_resolved (int ecode, struct addrinfo *ai, void *arg)
for (not = &the_notifications; *not; not = &(*not)->next) {
notif = *not;
+ if (arg != notif)
+ continue;
+
/* A bummer resolve */
if (ecode) {
warningx ("couldn't resolve server: %s: %s",