aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/dirserv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index b8665de77e..336fa7c377 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -726,7 +726,8 @@ dirserv_add_descriptor(routerinfo_t *ri, const char **msg)
tor_free(desc);
} else {
smartlist_t *changed;
- control_event_or_authdir_new_descriptor("ACCEPTED", desc, desclen, *msg);
+ if (desc)
+ control_event_or_authdir_new_descriptor("ACCEPTED", desc, desclen, *msg);
changed = smartlist_create();
smartlist_add(changed, ri);