- Timestamp:
- Apr 30, 2011, 11:43:29 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_evalrule.c
r285 r337 186 186 187 187 ng = SH_ALLOC(sizeof(struct sh_geval)); 188 memset(ng, '\0', sizeof(struct sh_geval)); 189 188 190 ng->label = sh_string_new_from_lchar(splits[0], lengths[0]); 189 191 ng->flags = RFL_ISGROUP; … … 292 294 293 295 nh = SH_ALLOC(sizeof(struct sh_heval)); 296 memset(nh, '\0', sizeof(struct sh_heval)); 297 294 298 nh->hostname = host; 295 299 nh->hostname_extra = host_extra; … … 358 362 359 363 nq = SH_ALLOC(sizeof(struct sh_qeval)); 364 memset(nq, '\0', sizeof(struct sh_qeval)); 365 360 366 nq->label = sh_string_new_from_lchar(splits[0], lengths[0]); 361 367 nq->alias = NULL; … … 609 615 610 616 nr = SH_ALLOC(sizeof(struct sh_geval)); 617 memset(nr, '\0', sizeof(struct sh_geval)); 618 611 619 nr->label = NULL; 612 620 nr->flags = RFL_ISRULE; … … 789 797 if (htmp->hostname_extra) (*pcre_free)(htmp->hostname_extra); 790 798 if (htmp->hostname) (*pcre_free)(htmp->hostname); 799 if (htmp->rulegroups) htmp->rulegroups = NULL; 791 800 hostlist = htmp->next; 801 htmp->next = NULL; 792 802 SH_FREE(htmp); 793 803 htmp = hostlist; 794 804 } 805 806 hostlist = NULL; 807 queuelist = NULL; 808 grouplist = NULL; 809 810 host_open = NULL; 811 group_open = NULL; 795 812 796 813 sh_keep_destroy(); … … 1116 1133 1117 1134 counter = SH_ALLOC(sizeof(struct sh_ceval)); 1135 memset(counter, '\0', sizeof(struct sh_ceval)); 1136 1118 1137 counter->hostname = sh_string_new_from_lchar(sh_string_str(host), 1119 1138 sh_string_len(host));
Note:
See TracChangeset
for help on using the changeset viewer.