Skip to content
Snippets Groups Projects
Commit 1ed289aa authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Initialize sess->sock

INVALID_SOCKET != 0, so this potentially ended up closing stdin
and breaking ANSI and Curses modes.
parent 319669cc
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,6 @@ ...@@ -11,7 +11,6 @@
#include "sockwrap.h" #include "sockwrap.h"
#include "stdio.h" #include "stdio.h"
#include "syncterm.h" #include "syncterm.h"
#include "uifcinit.h"
#include "webget.h" #include "webget.h"
#include "xpprintf.h" #include "xpprintf.h"
...@@ -1113,6 +1112,7 @@ bool ...@@ -1113,6 +1112,7 @@ bool
iniReadHttp(struct webget_request *req) iniReadHttp(struct webget_request *req)
{ {
struct http_session sess = { struct http_session sess = {
.sock = INVALID_SOCKET,
.req = req, .req = req,
.tls = -1, .tls = -1,
.hacky_list_entry = { .hacky_list_entry = {
...@@ -1193,6 +1193,8 @@ destroy_webget_req(struct webget_request *req) ...@@ -1193,6 +1193,8 @@ destroy_webget_req(struct webget_request *req)
} }
#if 0 #if 0
#include "uifcinit.h"
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment