vlan: fix bad checks in unittests

pull/1887/head
Victor Julien 9 years ago
parent e1468107e5
commit 573284b5ed

@ -240,7 +240,7 @@ static int DecodeVLANtest03 (void)
DecodeVLAN(&tv, &dtv, p, raw_vlan, sizeof(raw_vlan), NULL);
if(p->vlanh == NULL) {
if(p->vlanh[0] == NULL) {
goto error;
}

@ -10253,7 +10253,7 @@ static int StreamTcpTest40(void)
DecodeVLAN(&tv, &dtv, p, GET_PKT_DATA(p), GET_PKT_LEN(p), NULL);
if(p->vlanh == NULL) {
if(p->vlanh[0] == NULL) {
SCFree(p);
return 0;
}

Loading…
Cancel
Save