[Freeswitch-trunk] [commit] r13917 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/sresolv
FreeSWITCH SVN
mikej at freeswitch.org
Tue Jun 23 12:45:43 PDT 2009
Author: mikej
Date: Tue Jun 23 14:45:42 2009
New Revision: 13917
Log:
Mon Jun 22 10:10:16 CDT 2009 Mikhail Zabaluev <mikhail.zabaluev at 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.
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Tue Jun 23 14:45:42 2009
@@ -1 +1 @@
-Tue Jun 23 14:44:02 CDT 2009
+Tue Jun 23 14:44:45 CDT 2009
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c Tue Jun 23 14:45:42 2009
@@ -3644,7 +3644,8 @@
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;
}
}
More information about the Freeswitch-trunk
mailing list