From a998aa9a2e3a1f1f4994b47ea78fdf8883c5917a Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 21 Jun 2008 00:26:32 +0000 Subject: Double check that attributes are non null. --- plugin/dnsnotify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/dnsnotify.c') diff --git a/plugin/dnsnotify.c b/plugin/dnsnotify.c index 61c8efa..c24b90c 100644 --- a/plugin/dnsnotify.c +++ b/plugin/dnsnotify.c @@ -300,8 +300,8 @@ dnsnotify_post_modify (const char *dn, LDAPMod **mods) for (m = mods; *m; ++m) { mod = *m; - trace (mod->mod_type); - if (strcasecmp (mod->mod_type, dnsnotify_soa_attribute) == 0) { + if (mod->mod_type && + strcasecmp (mod->mod_type, dnsnotify_soa_attribute) == 0) { if (load_zone_attributes (dn, &zone, &ns)) { notify_dns_slaves (zone, ns); slapi_ch_array_free (ns); -- cgit v1.2.3