]> granicus.if.org Git - libevent/commitdiff
Fix a reversed check in upcast_evbuffer
authorNick Mathewson <nickm@torproject.org>
Thu, 30 Apr 2009 19:56:23 +0000 (19:56 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 30 Apr 2009 19:56:23 +0000 (19:56 +0000)
svn:r1257

buffer_iocp.c

index 15035982ede4f0d6480361101a146e4cce4f4ab7..986dd21b470d9717fc688d3f14ac7f1294e0338a 100644 (file)
@@ -82,7 +82,7 @@ struct evbuffer_overlapped {
 static inline struct evbuffer_overlapped *
 upcast_evbuffer(struct evbuffer *buf)
 {
-       if (!buf || buf->is_overlapped)
+       if (!buf || !buf->is_overlapped)
                return NULL;
        return EVUTIL_UPCAST(buf, struct evbuffer_overlapped, buffer);
 }