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/autoserial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugin/autoserial.c') diff --git a/plugin/autoserial.c b/plugin/autoserial.c index b9fdeeb..15083ce 100644 --- a/plugin/autoserial.c +++ b/plugin/autoserial.c @@ -490,7 +490,8 @@ autoserial_post_modify (const char *dn, LDAPMod **mods) if (soa_dn) { for (m = mods; *m; ++m) { mod = *m; - if (strcasecmp (mod->mod_type, dnsserial_soa_attribute) == 0) { + if (mod->mod_type && + strcasecmp (mod->mod_type, dnsserial_soa_attribute) == 0) { slapi_ch_free_string (&soa_dn); soa_dn = NULL; break; -- cgit v1.2.3