]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Mon Jun 22 10:10:16 CDT 2009 Mikhail Zabaluev <mikhail.zabaluev@nokia.com>
authorMichael Jerris <mike@jerris.com>
Tue, 23 Jun 2009 19:45:42 +0000 (19:45 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 23 Jun 2009 19:45:42 +0000 (19:45 +0000)
  * 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

libs/sofia-sip/.update
libs/sofia-sip/libsofia-sip-ua/sresolv/sres.c

index 2101b552f6c3d3b52afdc1c811ead11eeba2025d..d14d2ae26c72fe5e83dfba3db6d10af7d2a821c0 100644 (file)
@@ -1 +1 @@
-Tue Jun 23 14:44:02 CDT 2009
+Tue Jun 23 14:44:45 CDT 2009
index 769caa407c22c9879c2dffa91eacae84f65a5211..8f91b9724dbbc7d411574ba4fbd4a47f09feafbd 100644 (file)
@@ -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;
     }
   }