Merge remote-tracking branch 'origin/patches-2.0'

This commit is contained in:
Nick Mathewson 2011-05-25 16:52:50 -04:00
commit 9155b09534
3 changed files with 4 additions and 2 deletions

View File

@ -1152,6 +1152,9 @@ request_parse(u8 *packet, int length, struct evdns_server_port *port, struct soc
GET16(answers);
GET16(authority);
GET16(additional);
(void)answers;
(void)additional;
(void)authority;
if (flags & 0x8000) return -1; /* Must not be an answer. */
flags &= 0x0110; /* Only RD and CD get preserved. */

View File

@ -165,7 +165,6 @@ void evmap_io_clear(struct event_io_map *ctx)
#define GET_SIGNAL_SLOT_AND_CTOR(x, map, slot, type, ctor, fdinfo_len) \
do { \
if ((map)->entries[slot] == NULL) { \
EVUTIL_ASSERT(ctor != NULL); \
(map)->entries[slot] = \
mm_calloc(1,sizeof(struct type)+fdinfo_len); \
EVUTIL_ASSERT((map)->entries[slot] != NULL); \

View File

@ -551,7 +551,7 @@ want_fail_eventcb(struct bufferevent *bev, short what, void *ctx)
if (what & BEV_EVENT_ERROR) {
s = bufferevent_getfd(bev);
err = evutil_socket_error_to_string(evutil_socket_geterror(s));
TT_BLATHER(("connection failure %s", err));
TT_BLATHER(("connection failure on %d: %s", s, err));
test_ok = 1;
} else {
TT_FAIL(("didn't fail? what %hd", what));