bankd: Re-initialize client.peer_addr when recycling the thread

Change-Id: I56ed45bda4323326c42283f160f4b99a4138add1
laforge/bankd-fsm-mistake
Harald Welte 5 years ago
parent ceb3e68fab
commit 415e8f66ce
  1. 1
      src/bankd_main.c

@ -365,6 +365,7 @@ static void *worker_main(void *arg)
}
if (worker->client.fd >= 0)
close(worker->client.fd);
memset(&worker->client.peer_addr, 0, sizeof(worker->client.peer_addr));
worker->client.fd = -1;
}

Loading…
Cancel
Save