add basic tls support, todo: error handling
[project/uhttpd.git] / listen.c
index f11768ae1bfbba2ec2e72536fc817121228053b9..251a60e07eef53844056f075f33c5511368bc0e3 100644 (file)
--- a/listen.c
+++ b/listen.c
@@ -79,7 +79,7 @@ static void listener_cb(struct uloop_fd *fd, unsigned int events)
        struct listener *l = container_of(fd, struct listener, fd);
 
        while (1) {
-               if (!uh_accept_client(fd->fd))
+               if (!uh_accept_client(fd->fd, l->tls))
                        break;
        }