datapath-windows: Fix possible null dereference in ipfragment
Found using static analysis tools.
Acked-by: Anand Kumar
@@ -343,7 +343,7 @@ OvsProcessIpv4Fragment(POVS_SWITCH_CONTEXT switchContext,
}
POVS_FRAGMENT_LIST next = entry->head;
POVS_FRAGMENT_LIST prev = entry->tail;
- if (prev != NULL || prev->offset < offset) {
+ if (prev != NULL && prev->offset < offset) {
next = NULL;
goto found;
}
