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

Comparing ircd-hybrid-7.2/modules/m_testline.c (file contents):
Revision 147 by db, Sun Oct 16 01:20:07 2005 UTC vs.
Revision 148 by db, Sun Oct 16 16:18:18 2005 UTC

# Line 88 | Line 88 | static void
88   mo_testline(struct Client *client_p, struct Client *source_p,
89              int parc, char *parv[])
90   {
91 +  char *orig_parv1;
92    char *given_name;
93    char *given_host = NULL;
94    struct ConfItem *conf;
# Line 123 | Line 124 | mo_testline(struct Client *client_p, str
124      }
125    }
126  
127 +  DupString(orig_parv1,parv[1]);
128    split_nuh(given_name, NULL, &given_name, &given_host);
129  
130    t = parse_netmask(given_host, &ip, &host_mask);
# Line 222 | Line 224 | mo_testline(struct Client *client_p, str
224  
225    if (matches == 0)
226      sendto_one(source_p, form_str(RPL_NOTESTLINE),
227 <               me.name, source_p->name, parv[1]);
227 >               me.name, source_p->name, orig_parv1);
228 >
229 >  MyFree(given_host);
230 >  MyFree(given_name);
231 >  MyFree(orig_parv1);
232   }
233  
234   /* mo_testgecos()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines