Skip to content
Snippets Groups Projects
Forked from The Tor Project / Core / Tor
Source project has a limited visibility.
  • Nick Mathewson's avatar
    778d9012
    Avoid spurious warnings in rend_service_introduce · 778d9012
    Nick Mathewson authored
    There was some code in the "err:" block that would always log a
    warning, reporting an "unknown error" if we hadn't set err_msg.  But
    there were also plenty of "goto err" blocks that did their own
    logging, and never set err_msg at all.  Now we should only log when
    we have an error message to log.
    
    This fixes bug 6638, from no released Tor version.
    778d9012
    History
    Avoid spurious warnings in rend_service_introduce
    Nick Mathewson authored
    There was some code in the "err:" block that would always log a
    warning, reporting an "unknown error" if we hadn't set err_msg.  But
    there were also plenty of "goto err" blocks that did their own
    logging, and never set err_msg at all.  Now we should only log when
    we have an error message to log.
    
    This fixes bug 6638, from no released Tor version.