mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 20:17:05 +00:00
Mon Jun 22 10:10:16 CDT 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
* sresolv/sres.c: Untangle error record injection in case of a non-matching response Ignore-this: 5df64ab26151ac8e9da396aca83120cd errorcount == 0 in this branch anyway, no need to be obscure about it. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13917 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
40ce9aeac4
commit
10d1f60ca1
2 files changed
+3
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user