Commit 7cabfe9f authored by Yonghong Song's avatar Yonghong Song

Fix an uninitialized variable access in test_clang

Signed-off-by: default avatarYonghong Song <yhs@plumgrid.com>
parent 3dfaf983
......@@ -100,8 +100,9 @@ int handle_packet(struct __sk_buff *skb) {
goto EOP;
}
struct ip_t *ip = cursor_advance(cursor, sizeof(*ip));
struct ip_t *ip;
ip: {
ip = cursor_advance(cursor, sizeof(*ip));
switch (ip->nextp) {
case 6: goto tcp;
case 17: goto udp;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment