pass the correct object to cfg_obj_log

(cherry picked from commit 53a33f73)
21 jobs for 779-named-checkconf-crashes-in-parser-c-v9_11 in 12 minutes and 8 seconds (queued for 3 seconds)