610db47 Ticket 49380 - Crash when adding invalid replication agreement

Authored and Committed by mreynolds 6 years ago
    Ticket 49380 - Crash when adding invalid replication agreement
    
        Bug Description:  If you add a replication agreement with an invalid "replicaEnabled" value
                          the server crashes when freeing the replica schedule.  This is because the
                          schedule never gets allocated before the rror conidtion is hit, and then
                          it get dereferenced.
    
        Fix Description:  Check for a NULL schedule before trying to destroy it.
    
        https://pagure.io/389-ds-base/issue/49380
    
        Reviewed by: tbordaz(Thanks!)