]> granicus.if.org Git - libevent/commitdiff
le-proxy: add missing return statement (UAF)
authorMaximilian Brunner <MaximilianBrunner@icloud.com>
Tue, 25 Apr 2017 21:10:13 +0000 (23:10 +0200)
committerAzat Khuzhin <a3at.mail@gmail.com>
Sat, 29 Apr 2017 23:00:23 +0000 (02:00 +0300)
Refs: #501501501501501501501501501

sample/le-proxy.c

index e2fbf4522d650d7226a88d974c869cbcaf10f882..aee9ead6008998791ff347bc1ce175ea37935bd5 100644 (file)
@@ -194,6 +194,7 @@ accept_cb(struct evconnlistener *listener, evutil_socket_t fd,
                        perror("Bufferevent_openssl_new");
                        bufferevent_free(b_out);
                        bufferevent_free(b_in);
+                       return;
                }
                b_out = b_ssl;
        }