diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-04-15 16:48:57 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-04-15 16:48:57 +0200 |
commit | 9d83bd3c524c4bbeb8e6583155dd7df9e8a1b5d3 (patch) | |
tree | 18e37a5df270630afc03c3fc59cb836e97563b74 /tls.c | |
parent | 9d0b3de603b0ed965c1ec40433b9bf89918f67b8 (diff) |
tls: fix container_of use for casting the ssl ustream to client state
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'tls.c')
-rw-r--r-- | tls.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -68,14 +68,14 @@ int uh_tls_init(const char *key, const char *crt) static void tls_ustream_read_cb(struct ustream *s, int bytes) { - struct client *cl = container_of(s, struct client, ssl); + struct client *cl = container_of(s, struct client, ssl.stream); uh_client_read_cb(cl); } static void tls_ustream_write_cb(struct ustream *s, int bytes) { - struct client *cl = container_of(s, struct client, ssl); + struct client *cl = container_of(s, struct client, ssl.stream); if (cl->dispatch.write_cb) cl->dispatch.write_cb(cl); @@ -83,7 +83,7 @@ static void tls_ustream_write_cb(struct ustream *s, int bytes) static void tls_notify_state(struct ustream *s) { - struct client *cl = container_of(s, struct client, ssl); + struct client *cl = container_of(s, struct client, ssl.stream); uh_client_notify_state(cl); } |