summaryrefslogtreecommitdiff
path: root/relay.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-03 15:54:57 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-04 17:00:12 +0100
commit0d92580e5f7c04f19588f3bee6a0daafea05521b (patch)
tree8801d01d8f64eaa03c45045ff1051f77994d83cc /relay.c
parentcf9c6c30f1328f8804f55896b3fcfcd1f5ae0212 (diff)
fix relay ustream initialization
Diffstat (limited to 'relay.c')
-rw-r--r--relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/relay.c b/relay.c
index f484aa4..81e7736 100644
--- a/relay.c
+++ b/relay.c
@@ -166,10 +166,10 @@ void uh_relay_open(struct client *cl, struct relay *r, int fd, int pid)
struct ustream *us = &r->sfd.stream;
r->cl = cl;
- ustream_fd_init(&r->sfd, fd);
us->notify_read = relay_read_cb;
us->notify_state = relay_state_cb;
us->string_data = true;
+ ustream_fd_init(&r->sfd, fd);
r->proc.pid = pid;
r->proc.cb = relay_proc_cb;