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 @@
#include "sockwrap.h"
#include "stdio.h"
#include "syncterm.h"
#include "uifcinit.h"
#include "webget.h"
#include "xpprintf.h"
......@@ -1113,6 +1112,7 @@ bool
iniReadHttp(struct webget_request *req)
{
struct http_session sess = {
.sock = INVALID_SOCKET,
.req = req,
.tls = -1,
.hacky_list_entry = {
......@@ -1193,6 +1193,8 @@ destroy_webget_req(struct webget_request *req)
}
#if 0
#include "uifcinit.h"
int
main(int argc, char **argv)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment