/[monit]/monit/http/engine.c
ViewVC logotype

Diff of /monit/http/engine.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.24 by hauk, Thu Jun 26 14:24:11 2003 UTC revision 1.25 by hauk, Tue Jul 15 01:02:58 2003 UTC
# Line 244  int add_host_allow(char *name) { Line 244  int add_host_allow(char *name) {
244            
245    } else  {    } else  {
246            
247      HostsAllow h= NEW(h);      HostsAllow h;
248    
249        NEW(h);
250            
251      while(*hp->h_addr_list) {      while(*hp->h_addr_list) {
252    
# Line 458  static RequestWrapper socket_producer(in Line 460  static RequestWrapper socket_producer(in
460   */   */
461  static RequestWrapper create_wrapper(struct in_addr iaddr, int client) {  static RequestWrapper create_wrapper(struct in_addr iaddr, int client) {
462    
463    RequestWrapper w= NEW(w);    InetAddress i;
464    InetAddress i= NEW(i);    RequestWrapper w;
465        
466    i->remote_host= xstrdup( inet_ntoa(iaddr) );    NEW(i);
467    i->local_host= get_localhostname();    NEW(w);
468    w->inetaddr= i;    w->inetaddr= i;
   w->socket= client;  
469    w->status= TRUE;    w->status= TRUE;
470      w->socket= client;
471      i->local_host= get_localhostname();
472      i->remote_host= xstrdup( inet_ntoa(iaddr) );
473            
474    return (w);    return (w);
475    

Legend:
Removed from v.1.24  
changed lines
  Added in v.1.25

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26