r = DetectAddressParse(NULL, gh, "1.2.3.3");
if (r == 0 && gh->ipv4_head != prev_head &&
gh->ipv4_head != NULL && gh->ipv4_head->next == prev_head) {
- DetectAddress *prev_head = gh->ipv4_head;
+ DetectAddress *ph = gh->ipv4_head;
r = DetectAddressParse(NULL, gh, "1.2.3.2");
- if (r == 0 && gh->ipv4_head != prev_head &&
- gh->ipv4_head != NULL && gh->ipv4_head->next == prev_head) {
+ if (r == 0 && gh->ipv4_head != ph &&
+ gh->ipv4_head != NULL && gh->ipv4_head->next == ph) {
result = 1;
}
}
r = DetectAddressParse(NULL, gh, "1.2.3.3");
if (r == 0 && gh->ipv4_head == prev_head &&
gh->ipv4_head != NULL && gh->ipv4_head->next != prev_head) {
- DetectAddress *prev_head = gh->ipv4_head;
+ DetectAddress *ph = gh->ipv4_head;
r = DetectAddressParse(NULL, gh, "1.2.3.4");
- if (r == 0 && gh->ipv4_head == prev_head &&
- gh->ipv4_head != NULL && gh->ipv4_head->next != prev_head) {
+ if (r == 0 && gh->ipv4_head == ph &&
+ gh->ipv4_head != NULL && gh->ipv4_head->next != ph) {
result = 1;
}
}
r = DetectAddressParse(NULL, gh, "2001::3");
if (r == 0 && gh->ipv6_head != prev_head &&
gh->ipv6_head != NULL && gh->ipv6_head->next == prev_head) {
- DetectAddress *prev_head = gh->ipv6_head;
+ DetectAddress *ph = gh->ipv6_head;
r = DetectAddressParse(NULL, gh, "2001::2");
- if (r == 0 && gh->ipv6_head != prev_head &&
- gh->ipv6_head != NULL && gh->ipv6_head->next == prev_head) {
+ if (r == 0 && gh->ipv6_head != ph &&
+ gh->ipv6_head != NULL && gh->ipv6_head->next == ph) {
result = 1;
}
}
r = DetectAddressParse(NULL, gh, "2001::3");
if (r == 0 && gh->ipv6_head == prev_head &&
gh->ipv6_head != NULL && gh->ipv6_head->next != prev_head) {
- DetectAddress *prev_head = gh->ipv6_head;
+ DetectAddress *ph = gh->ipv6_head;
r = DetectAddressParse(NULL, gh, "2001::4");
- if (r == 0 && gh->ipv6_head == prev_head &&
- gh->ipv6_head != NULL && gh->ipv6_head->next != prev_head) {
+ if (r == 0 && gh->ipv6_head == ph &&
+ gh->ipv6_head != NULL && gh->ipv6_head->next != ph) {
result = 1;
}
}