< Previous by Date Date Index Next by Date >
< Previous in Thread Thread Index Next in Thread >

Re: [reSIProcate-users] Maybe a bug in DnsUtil


Hi Karlsson,

What OS is this happening on?

Scott

Sent from my iPhone

On Nov 1, 2014, at 9:15 PM, Karlsson <boost.regex@xxxxxxxxx> wrote:

In the DnsUtil.xx, below code:

      int res = getaddrinfo(buffer, 0, &hints, &result);
      if (!res) 
      {
         // !jf! this should really use the Data class 
         if (strchr(result->ai_canonname, '.') != 0) 
         {
            strncpy(buffer, result->ai_canonname, sizeof(buffer));
         }
      }

It's seems sometime the result is NULL will cause the app crashed.

BRs
_______________________________________________
resiprocate-users mailing list
resiprocate-users@xxxxxxxxxxxxxxx
List Archive: http://list.resiprocate.org/archive/resiprocate-users/