]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add a missing goto to an unusable branch and make the branch LD_BUG.
authorNick Mathewson <nickm@torproject.org>
Thu, 21 Aug 2014 14:21:17 +0000 (10:21 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 21 Aug 2014 14:21:17 +0000 (10:21 -0400)
(It's LD_BUG to reach this point because the hashed password values
were tested earlier from options_validate)

[Coverity CID 1232091]

src/or/control.c

index a920ac835effe9a943a8417e62ed7c70ab4b004b..11a853041bb970782121d269965d31479d5ae0cf 100644 (file)
@@ -1160,9 +1160,10 @@ handle_control_authenticate(control_connection_t *conn, uint32_t len,
     }
     if (bad) {
       if (!also_cookie) {
-        log_warn(LD_CONTROL,
+        log_warn(LD_BUG,
                  "Couldn't decode HashedControlPassword: invalid base16");
         errstr="Couldn't decode HashedControlPassword value in configuration.";
+        goto err;
       }
       bad_password = 1;
       SMARTLIST_FOREACH(sl, char *, cp, tor_free(cp));