]> granicus.if.org Git - libevent/commitdiff
Initialize last_with_datap correctly in evbuffer_overlapped
authorNick Mathewson <nickm@torproject.org>
Wed, 14 Apr 2010 04:36:09 +0000 (00:36 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 14 Apr 2010 05:17:24 +0000 (01:17 -0400)
Fixes bug 2985406

buffer_iocp.c

index 6983a6ac784a53a30aa6a90eb9580e2206df5c32..ca0ec3606636bb07ebd283adee30d3a1ac6fdb57 100644 (file)
@@ -148,6 +148,7 @@ evbuffer_overlapped_new(evutil_socket_t fd)
 
        TAILQ_INIT(&evo->buffer.callbacks);
        evo->buffer.refcnt = 1;
+       evo->buffer.last_with_datap = &evo->buffer.first;
 
        evo->buffer.is_overlapped = 1;
        evo->fd = fd;