ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/res.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/res.c (file contents):
Revision 3504 by michael, Thu Apr 24 16:15:51 2014 UTC vs.
Revision 3505 by michael, Sat May 10 19:51:42 2014 UTC

# Line 431 | Line 431 | do_query_name(dns_callback_fnc callback,
431    if (request == NULL)
432    {
433      request       = make_request(callback, ctx);
434 <    request->name = MyMalloc(strlen(host_name) + 1);
434 >    request->name = MyCalloc(strlen(host_name) + 1);
435      request->type = type;
436      strcpy(request->name, host_name);
437   #ifdef IPV6
# Line 497 | Line 497 | do_query_number(dns_callback_fnc callbac
497      request       = make_request(callback, ctx);
498      request->type = T_PTR;
499      memcpy(&request->addr, addr, sizeof(struct irc_ssaddr));
500 <    request->name = MyMalloc(HOSTLEN + 1);
500 >    request->name = MyCalloc(HOSTLEN + 1);
501    }
502  
503    query_name(ipbuf, C_IN, T_PTR, request);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines