-/* $OpenBSD: relay_udp.c,v 1.31 2014/07/13 00:32:08 benno Exp $ */
+/* $OpenBSD: relay_udp.c,v 1.32 2014/08/08 18:26:50 reyk Exp $ */
/*
* Copyright (c) 2007 - 2013 Reyk Floeter <reyk@openbsd.org>
void *priv = NULL;
ssize_t len;
+ event_add(&rlay->rl_ev, NULL);
+
if (relay_sessions >= RELAY_MAX_SESSIONS ||
rlay->rl_conf.flags & F_DISABLE)
return;
}
event_again(&con->se_ev, con->se_out.s, EV_TIMEOUT|EV_READ,
- relay_udp_response, &con->se_tv_start, &env->sc_timeout, con);
+ relay_udp_response, &con->se_tv_start, &rlay->rl_conf.timeout, con);
return (0);
}