Commit 99dced73 authored by Brenden Blanco's avatar Brenden Blanco

Merge pull request #264 from iovisor/yhs_dev

Fix an uninitialized variable access in test_clang
parents 3dfaf983 7cabfe9f
......@@ -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