]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
fix crash introduced in r9622
authorRoger Dingledine <arma@torproject.org>
Sat, 24 Feb 2007 06:44:40 +0000 (06:44 +0000)
committerRoger Dingledine <arma@torproject.org>
Sat, 24 Feb 2007 06:44:40 +0000 (06:44 +0000)
svn:r9632

src/or/circuitbuild.c

index 33d5e8e2c98d1e0cd0b592c7995c33326c4605d2..58e85da590d565693e342a4dd28fca4f9a00d908 100644 (file)
@@ -2201,7 +2201,8 @@ entry_guard_register_connect_status(const char *digest, int succeeded,
                 entry->nickname, buf, tbuf);
       entry->last_attempted = now;
     }
-    entry->can_retry = 0; /* We gave it an early chance; no good. */
+    if (entry)
+      entry->can_retry = 0; /* We gave it an early chance; no good. */
   }
 
   if (first_contact) {