6lowpan: next header is not properly set upon decompression of a UDP header.
[linux-2.6-block.git] / net / ieee802154 / 6lowpan.c
index 43b95ca611144920333ca6aa12bc70aa14c033b9..9f53904b526199ccaa57e2036b0fddafb93c13a2 100644 (file)
@@ -918,9 +918,11 @@ lowpan_process_data(struct sk_buff *skb)
        }
 
        /* UDP data uncompression */
-       if (iphc0 & LOWPAN_IPHC_NH_C)
+       if (iphc0 & LOWPAN_IPHC_NH_C) {
                if (lowpan_uncompress_udp_header(skb))
                        goto drop;
+               hdr.nexthdr = UIP_PROTO_UDP;
+       }
 
        /* Not fragmented package */
        hdr.payload_len = htons(skb->len);