/[svn]/hopm/branches/1.1.x/src/scan.c
ViewVC logotype

Diff of /hopm/branches/1.1.x/src/scan.c

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

revision 8580 by michael, Sun Oct 14 15:15:05 2018 UTC revision 8581 by michael, Sun Oct 14 16:58:58 2018 UTC
# Line 196  scan_checkexempt(const char *mask, const Line 196  scan_checkexempt(const char *mask, const
196  void  void
197  scan_init(void)  scan_init(void)
198  {  {
199    node_t *p, *p2, *p3, *p4, *node;    node_t *p, *p2, *p3, *p4;
200    
201    /* Setup each individual scanner */    /* Setup each individual scanner */
202    LIST_FOREACH(p, ScannerItemList.head)    LIST_FOREACH(p, ScannerItemList.head)
# Line 244  scan_init(void) Line 244  scan_init(void)
244                      scan_gettype(pc->type), pc->port, scs->name);                      scan_gettype(pc->type), pc->port, scs->name);
245      }      }
246    
247      node = node_create(scs);      list_add(scs, node_create(), &SCANNERS);
     list_add(&SCANNERS, node);  
248    }    }
249    
250    /* Give scanners a list of masks they scan */    /* Give scanners a list of masks they scan */
# Line 271  scan_init(void) Line 270  scan_init(void)
270              if (OPT_DEBUG)              if (OPT_DEBUG)
271                log_printf("SCAN -> Linking the mask [%s] to scanner [%s]", mask, scannername);                log_printf("SCAN -> Linking the mask [%s] to scanner [%s]", mask, scannername);
272    
273              node = node_create(xstrdup(mask));              list_add(xstrdup(mask), node_create(), &scs->masks);
             list_add(&scs->masks, node);  
274            }            }
275    
276            break;            break;

Legend:
Removed from v.8580  
changed lines
  Added in v.8581

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.28