Skip to content

Commit 1cc422d

Browse files
Nepomuk5665qdeslandes
authored andcommitted
lib: matcher: fix strdup return value check in _bf_parse_tcp_flags
1 parent 42247fb commit 1cc422d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libbpfilter/matcher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ static int _bf_parse_tcp_flags(enum bf_matcher_type type, enum bf_matcher_op op,
614614
uint8_t *flags = payload;
615615

616616
_raw_payload = strdup(raw_payload);
617-
if (!raw_payload)
617+
if (!_raw_payload)
618618
goto err;
619619

620620
*flags = 0;

0 commit comments

Comments
 (0)