]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/overlays/syncprov.c
ITS#8843 check for NULL modlist
[openldap] / servers / slapd / overlays / syncprov.c
index 402182e249a174758d62a98f22fac84f9d4fe016..160b57a28990b56f2d8427bb13ca43c54fad3232 100644 (file)
@@ -2,7 +2,7 @@
 /* syncprov.c - syncrepl provider */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *
- * Copyright 2004-2017 The OpenLDAP Foundation.
+ * Copyright 2004-2018 The OpenLDAP Foundation.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -1936,6 +1936,7 @@ syncprov_op_response( Operation *op, SlapReply *rs )
                /* Don't do any processing for consumer contextCSN updates */
                if ( SLAPD_SYNC_IS_SYNCCONN( op->o_connid ) &&
                        op->o_tag == LDAP_REQ_MODIFY &&
+                       op->orm_modlist &&
                        op->orm_modlist->sml_op == LDAP_MOD_REPLACE &&
                        op->orm_modlist->sml_desc == slap_schema.si_ad_contextCSN ) {
                        /* Catch contextCSN updates from syncrepl. We have to look at