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

Comparing ircd-hybrid/trunk/src/conf.c (file contents):
Revision 4400 by michael, Tue Aug 5 17:42:56 2014 UTC vs.
Revision 4408 by michael, Wed Aug 6 21:19:38 2014 UTC

# Line 92 | Line 92 | static int find_user_host(struct Client
92   * if successful save hp in the conf item it was called with
93   */
94   static void
95 < conf_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name)
95 > conf_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name, size_t namelength)
96   {
97    struct MaskItem *conf = vptr;
98  
99    conf->dns_pending = 0;
100  
101 +  if (EmptyString(name) || namelength > HOSTLEN)
102 +    return;
103 +
104    if (addr)
105      memcpy(&conf->addr, addr, sizeof(conf->addr));
106    else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines