Skip to content
Snippets Groups Projects

Draft: Bug 0.4.5.5-rc ORPort relay (using both IPv4 & IPv6)

Closed David Goulet requested to merge dgoulet/tor:ticket40289_045_01 into maint-0.4.5
1 unresolved thread
Edited by David Goulet

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
188 188 return buf;
189 189 }
190 190
191 /** Return true iff port p1 is equal to p2. This does a memory compare so any
192 * object pointer in the port_cfg_t will result in a false result. */
193 static bool
194 port_cfg_eq(const port_cfg_t *p1, const port_cfg_t *p2)
195 {
196 return tor_memeq(p1, p2, sizeof(port_cfg_t));
  • This looks okay to me, except that the implementation of port_cfg_eq() is potentially error-prone. Please either change that function to do a field-by-field comparison, or make sure that we never have uninitialized bytes in a port_cfg_t?

  • Also please see the note about the size of port_cfg_t.

  • David Goulet added 1 commit

    added 1 commit

    • 344b6b49 - fixup! config: Do not compare for duplicate ORPorts with different addresses

    Compare with previous version

  • David Goulet marked this merge request as draft from dgoulet/tor@344b6b49

    marked this merge request as draft from dgoulet/tor@344b6b49

  • David Goulet added 1 commit

    added 1 commit

    • fbb1f02f - fixup! fixup! config: Do not compare for duplicate ORPorts with different addresses

    Compare with previous version

  • lgtm; please merge when you're ready.

  • closed

  • Please register or sign in to reply
    Loading