mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
Fix uninitialised variable
This commit is contained in:
parent
61643cb550
commit
67c7ae15b8
1 changed files with 4 additions and 3 deletions
|
@ -281,6 +281,7 @@ query_sent_now(int id)
|
||||||
|
|
||||||
static void
|
static void
|
||||||
got_response(int id, int immediate, int fail)
|
got_response(int id, int immediate, int fail)
|
||||||
|
/* immediate: if query was replied to immediately (see below) */
|
||||||
{
|
{
|
||||||
struct timeval now, rtt;
|
struct timeval now, rtt;
|
||||||
time_t rtt_ms;
|
time_t rtt_ms;
|
||||||
|
@ -1122,12 +1123,12 @@ tunnel_dns()
|
||||||
|
|
||||||
this.num_recv++;
|
this.num_recv++;
|
||||||
|
|
||||||
/* Mark query as received */
|
|
||||||
got_response(q.id, immediate, 0);
|
|
||||||
|
|
||||||
/* Decode the downstream data header and fragment-ify ready for processing */
|
/* Decode the downstream data header and fragment-ify ready for processing */
|
||||||
error = parse_data(cbuf, read, &f, &immediate, &ping);
|
error = parse_data(cbuf, read, &f, &immediate, &ping);
|
||||||
|
|
||||||
|
/* Mark query as received */
|
||||||
|
got_response(q.id, immediate, 0);
|
||||||
|
|
||||||
if ((this.debug >= 3 && ping) || (this.debug >= 2 && !ping))
|
if ((this.debug >= 3 && ping) || (this.debug >= 2 && !ping))
|
||||||
fprintf(stderr, " RX %s; frag ID %3u, ACK %3d, compression %d, datalen %" L "u, s%d e%d\n",
|
fprintf(stderr, " RX %s; frag ID %3u, ACK %3d, compression %d, datalen %" L "u, s%d e%d\n",
|
||||||
ping ? "PING" : "DATA", f.seqID, f.ack_other, f.compressed, f.len, f.start, f.end);
|
ping ? "PING" : "DATA", f.seqID, f.ack_other, f.compressed, f.len, f.start, f.end);
|
||||||
|
|
Loading…
Add table
Reference in a new issue