]> granicus.if.org Git - libevent/commitdiff
bad realloc; found by awohl at chessclub
authorNiels Provos <provos@gmail.com>
Sat, 11 Oct 2003 02:54:41 +0000 (02:54 +0000)
committerNiels Provos <provos@gmail.com>
Sat, 11 Oct 2003 02:54:41 +0000 (02:54 +0000)
svn:r87

kqueue.c

index 949db4d2b13629715afff078bc4301e8bf57d620..3ce1e0b6a00ac7865ed255e79dbdc42bcb405501 100644 (file)
--- a/kqueue.c
+++ b/kqueue.c
@@ -155,7 +155,7 @@ kq_insert(struct kqop *kqop, struct kevent *kev)
                }
                kqop->changes = newchange;
 
-               newresult = realloc(kqop->changes,
+               newresult = realloc(kqop->events,
                                    nevents * sizeof(struct kevent));
 
                /*