Fix allocation error for IOCP listeners. Probably harmless, since struct event is big
authorNick Mathewson <nickm@torproject.org>
Thu, 23 Sep 2010 21:41:49 +0000 (17:41 -0400)
committerNick Mathewson <nickm@torproject.org>
Thu, 7 Oct 2010 22:11:37 +0000 (18:11 -0400)
listener.c

index 840b09fdc528483d566149f47b7e7d77c30ad0bc..8eb5b5fc9ec7aeb5b51660da090cb07fae347879 100644 (file)
@@ -743,7 +743,7 @@ evconnlistener_new_async(struct event_base *base,
                event_sock_warn(fd, "getsockname");
                goto err;
        }
-       lev = mm_calloc(1, sizeof(struct evconnlistener_event));
+       lev = mm_calloc(1, sizeof(struct evconnlistener_iocp));
        if (!lev) {
                event_warn("calloc");
                goto err;