Commit a874a325 authored by Mikhail Zabaluev's avatar Mikhail Zabaluev

sresolv/sres.c: Untangle error record injection in case of a non-matching response

Ignore-this: 5df64ab26151ac8e9da396aca83120cd

errorcount

darcs-hash:20090622151016-5b6ca-44ab7cfbd640b5d54df4ee102764b2c0ed4f4fb3.gz
parent 4411f4e5
......@@ -3644,7 +3644,8 @@ sres_decode_msg(sres_resolver_t *res,
sres_record_type(answers[0]->sr_type, b1)));
rr = sres_create_error_rr(res->res_cache, query, err = SRES_RECORD_ERR);
memmove(answers + 1, answers, (sizeof answers[0]) * total++);
answers[errorcount++] = rr;
answers[0] = rr;
errorcount = 1;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment