ecdsa_free(&c->ecdsa);
rsa_free(&c->rsa);
- if(c->hischallenge)
+ if(c->hischallenge) {
free(c->hischallenge);
+ c->hischallenge = NULL;
+ }
buffer_clear(&c->inbuf);
buffer_clear(&c->outbuf);
closesocket(c->socket);
c->socket = -1;
+
+ c->protocol_major = 0;
+ c->protocol_minor = 0;
+ c->allow_request = 0;
}
void free_connection(connection_t *c) {
for(node = connection_tree->head; node; node = node->next) {
c = node->data;
- send_request(cdump, "%d %d %s at %s options %x socket %d status %04x",
+ send_request(cdump, "%d %d %s %s %x %d %x",
CONTROL, REQ_DUMP_CONNECTIONS,
c->name, c->hostname, c->options, c->socket,
bitfield_to_int(&c->status, sizeof c->status));