]> granicus.if.org Git - strace/commitdiff
print_setsockopt: fix fall-through bug in SOL_IP switch case
authorDmitry V. Levin <ldv@altlinux.org>
Sun, 8 Feb 2015 01:19:06 +0000 (01:19 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 8 Feb 2015 01:19:06 +0000 (01:19 +0000)
This fixes the bug introduced by commit v4.9-250-ga0a4909.

* net.c (print_setsockopt): Separate SOL_IP case from SOL_PACKET.

Reported-by: Ben Noordhuis <info@bnoordhuis.nl>
net.c

diff --git a/net.c b/net.c
index 49185dc032cd42edc3abe4d0c8d61468cc9f28cc..cb29faad6204de8e5a6f56f8e889b34376a5a9bc 100644 (file)
--- a/net.c
+++ b/net.c
@@ -1445,6 +1445,7 @@ print_setsockopt(struct tcb *tcp, int level, int name, long addr, int len)
                        goto done;
 #endif /* MCAST_JOIN_GROUP */
                }
+               break;
 
        case SOL_PACKET:
                switch (name) {