Browse Source

Set ip and port to NULL in _btc_io to cope with reused free in extract_sockaddr

master
Con Kolivas 8 years ago
parent
commit
7bc07d6c07
  1. 2
      src/ckdb_btc.c

2
src/ckdb_btc.c

@ -108,7 +108,7 @@ static int read_socket(int fd, char **buf, int timeout)
static char *_btc_io(__maybe_unused const char *cmd, char *json, WHERE_FFL_ARGS)
{
char *ip, *port;
char *ip = NULL, *port = NULL;
char *data, *ans, *res, *ptr;
int fd, ret, red;
size_t len;

Loading…
Cancel
Save