Commit 5efd2b2f authored by Nick Mathewson's avatar Nick Mathewson 🦀
Browse files

Backport: Avoid nop call to control_event_or_authdir_new_descriptor that makes...

Backport: Avoid nop call to control_event_or_authdir_new_descriptor that makes coverity think we are dereferencing a null pointer.  It is safe, I think, but entirely too clever for our own good.

svn:r17670
parent eb1752e4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -702,6 +702,7 @@ dirserv_add_descriptor(routerinfo_t *ri, const char **msg)
    return r == -1 ? 0 : -1;
  } else {
    smartlist_t *changed;
    if (desc)
      control_event_or_authdir_new_descriptor("ACCEPTED", desc, desclen, *msg);

    changed = smartlist_create();