tor/src/lib/dispatch
Nick Mathewson 47de9c7b0a Use actual pointers in dispatch_cfg.c.
Previously, I had used integers encoded as pointers.  This
introduced a flaw: NULL represented both the integer zero, and the
absence of a setting.  This in turn made the checks in
cfg_msg_set_{type,chan}() not actually check for an altered value if
the previous value had been set to zero.

Also, I had previously kept a pointer to a dispatch_fypefns_t rather
than making a copy of it.  This meant that if the dispatch_typefns_t
were changed between defining the typefns and creating the
dispatcher, we'd get the modified version.

Found while investigating coverage in pubsub_add_{pub,sub}_()
2019-03-25 16:35:34 -04:00
..
.may_include Add a naming system for IDs in dispatch. 2019-03-25 16:35:33 -04:00
dispatch_cfg_st.h Low-level dispatch module for publish-subscribe mechanism 2019-03-25 16:35:33 -04:00
dispatch_cfg.c Use actual pointers in dispatch_cfg.c. 2019-03-25 16:35:34 -04:00
dispatch_cfg.h Low-level dispatch module for publish-subscribe mechanism 2019-03-25 16:35:33 -04:00
dispatch_core.c Debug logs to record all messages sent and delivered. 2019-03-25 16:35:33 -04:00
dispatch_naming.c Add a naming system for IDs in dispatch. 2019-03-25 16:35:33 -04:00
dispatch_naming.h Add a naming system for IDs in dispatch. 2019-03-25 16:35:33 -04:00
dispatch_new.c Use actual pointers in dispatch_cfg.c. 2019-03-25 16:35:34 -04:00
dispatch_st.h Low-level dispatch module for publish-subscribe mechanism 2019-03-25 16:35:33 -04:00
dispatch.h Low-level dispatch module for publish-subscribe mechanism 2019-03-25 16:35:33 -04:00
include.am Add a naming system for IDs in dispatch. 2019-03-25 16:35:33 -04:00
msgtypes.h Low-level dispatch module for publish-subscribe mechanism 2019-03-25 16:35:33 -04:00