diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-10 08:08:32 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-10 08:08:32 +0100 |
commit | 1a1e09bd5def4fae2a499294535b37805f79fde8 (patch) | |
tree | 3726fe2e84485d405a9d09500b0215da933d1b47 /lib/send.c | |
parent | a48992622d54c6d5dbf5abe3022cfe5b06167261 (diff) |
[UDP] Don't crash on second packet.
[UDP] Set the user_data member for the write callback in
rs_packet_send() -- the one from udp_init() doesn't do much good at
this point.
Diffstat (limited to 'lib/send.c')
-rw-r--r-- | lib/send.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -103,6 +103,8 @@ rs_packet_send (struct rs_packet *pkt, void *user_data) } else /* UDP */ { + event_assign (conn->wev, conn->evb, event_get_fd (conn->wev), + EV_WRITE, event_get_callback (conn->wev), pkt); err = event_add (conn->wev, NULL); if (err < 0) return rs_err_conn_push_fl (conn, RSE_EVENT, __FILE__, __LINE__, |