From d229025fefa6faa228d9154e391293d9d5b320d3 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Mon, 8 Sep 2014 15:15:05 -0400 Subject: Expand the event_mask field in controller conns to 64 bits Back in 078d6bcd, we added an event number 0x20, but we didn't make the event_mask field big enough to compensate. Patch by "teor". Fixes 13085; bugfix on 0.2.5.1-alpha. --- src/or/control.c | 8 ++++---- src/or/control.h | 4 ++-- src/or/or.h | 5 +++-- 3 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src/or') diff --git a/src/or/control.c b/src/or/control.c index 4a6b18d02a..9378f38f40 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -582,7 +582,7 @@ send_control_event_string,(uint16_t event, event_format_t which, conn->state == CONTROL_CONN_STATE_OPEN) { control_connection_t *control_conn = TO_CONTROL_CONN(conn); - if (control_conn->event_mask & (1<event_mask & (((event_mask_t)1)<event_mask & ((uint32_t)1L<event_mask & (((event_mask_t)1)<31, so we need a 64 bit mask */ /** True if we have sent a protocolinfo reply on this connection. */ unsigned int have_sent_protocolinfo:1; -- cgit v1.2.3-54-g00ecf