chiark / gitweb /
comm: comm_notify takes the cc, not just the notify_list
[secnet.git] / udp.c
diff --git a/udp.c b/udp.c
index 0d945acdb4df07d6f4645262154c042a502af358..b9a3860ac264c70b9797747b32818a41150fc52e 100644 (file)
--- a/udp.c
+++ b/udp.c
@@ -173,7 +173,7 @@ static void udp_socks_afterpoll(void *state, struct pollfd *fds, int nfds)
                ca.comm=&cc->ops;
                ca.ia=from;
                ca.ix=i;
-               done=comm_notify(&cc->notify, cc->rbuf, &ca);
+               done=comm_notify(cc, cc->rbuf, &ca);
                if (done) {
                    udp_sock_experienced(0,uc,socks,us,0,
                                         from.sa.sa_family,0,0);