+void free_connection_partially(connection_t *c) {
+ free(c->inkey);
+ free(c->outkey);
+ free(c->mychallenge);
+ free(c->hischallenge);
+ free(c->outbuf);
+
+ c->inkey = NULL;
+ c->outkey = NULL;
+ c->mychallenge = NULL;
+ c->hischallenge = NULL;
+ c->outbuf = NULL;
+
+ c->status.pinged = false;
+ c->status.active = false;
+ c->status.connecting = false;
+ c->status.timeout = false;
+ c->status.encryptout = false;
+ c->status.decryptin = false;
+ c->status.mst = false;
+
+ c->options = 0;
+ c->buflen = 0;
+ c->reqlen = 0;
+ c->tcplen = 0;
+ c->allow_request = 0;
+ c->outbuflen = 0;
+ c->outbufsize = 0;
+ c->outbufstart = 0;
+ c->last_ping_time = 0;
+ c->last_flushed_time = 0;
+ c->inbudget = 0;
+ c->outbudget = 0;