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

Comparing ircd-hybrid/branches/8.2.x/src/s_bsd.c (file contents):
Revision 4408 by michael, Wed Aug 6 18:40:24 2014 UTC vs.
Revision 4409 by michael, Wed Aug 6 21:20:45 2014 UTC

# Line 59 | Line 59 | static const char *comm_err_str[] = { "C
59  
60   static void comm_connect_callback(fde_t *, int);
61   static PF comm_connect_timeout;
62 < static void comm_connect_dns_callback(void *, const struct irc_ssaddr *, const char *);
62 > static void comm_connect_dns_callback(void *, const struct irc_ssaddr *, const char *, size_t);
63   static PF comm_connect_tryconnect;
64  
65  
# Line 593 | Line 593 | comm_connect_timeout(fde_t *fd, void *no
593   * otherwise we initiate the connect()
594   */
595   static void
596 < comm_connect_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name)
596 > comm_connect_dns_callback(void *vptr, const struct irc_ssaddr *addr, const char *name, size_t namelength)
597   {
598    fde_t *F = vptr;
599  
600 <  if (name == NULL)
600 >  if (EmptyString(name) || namelength > HOSTLEN)
601    {
602      comm_connect_callback(F, COMM_ERR_DNS);
603      return;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)