72da800 sbus: check connection for NULL before unregister it

1 file Authored by sbose 3 years ago , Committed by lslebodn 3 years ago ,
    sbus: check connection for NULL before unregister it
    
    There seem to be code paths where the data is a added to the hash before
    the connection is properly initialized, to avoid core dump during shut
    down we only call dbus_conection_unregister_object_path() if there is a
    connection.
    
    Resolves:
    https://pagure.io/SSSD/sssd/issue/3367
    
    Reviewed-by: Pavel Březina <pbrezina@redhat.com>
    (cherry picked from commit 35186217d44d0138a1aedf7a4db72249b2c40e66)