From de75afc5561fe931d1ff4d29ae629a92205154f0 Mon Sep 17 00:00:00 2001 From: Robert Ransom Date: Wed, 24 Nov 2010 07:50:29 -0800 Subject: Avoid dereferencing NULL if a bridge fails to build an ei descriptor. Reported by an anonymous commenter on Trac. --- src/or/router.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/or/router.c b/src/or/router.c index 3d4ee7039..66ef8ec52 100644 --- a/src/or/router.c +++ b/src/or/router.c @@ -1523,7 +1523,7 @@ router_rebuild_descriptor(int force) /* Let bridges serve their own descriptors unencrypted, so they can * pass reachability testing. (If they want to be harder to notice, * they can always leave the DirPort off). */ - if (!options->BridgeRelay) + if (ei && !options->BridgeRelay) ei->cache_info.send_unencrypted = 1; router_get_router_hash(ri->cache_info.signed_descriptor_body, -- cgit v1.2.3