a code question
Asked by
hzkjdxwktx
When I using the ROHC code,I find a segment of code canot understanding:
struct ip6_hdr * ipv6_get_
{
struct ip6_hdr *header;
if(ip.version == IPV6)
header = &ip.header.v6;
else
header = NULL;
return header;
}
I think when the function end,the "ip" which used in this function(it's not the "ip" of parameter ) will be free,so the point "header" will be a wild pointer.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- rohc Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask hzkjdxwktx for more information if necessary.
To post a message you must log in.